mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Type definitions and tests for param-case
This commit is contained in:
parent
c963dad1ac
commit
1f3eb8b909
9
param-case/param-case-tests.ts
Normal file
9
param-case/param-case-tests.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/// <reference path="param-case.d.ts" />
|
||||
|
||||
import paramCase = require('param-case');
|
||||
|
||||
console.log(paramCase('string')); // => "string"
|
||||
console.log(paramCase('camelCase')); // => "camel-case"
|
||||
console.log(paramCase('sentence case')); // => "sentence-case"
|
||||
|
||||
console.log(paramCase('MY STRING', 'tr')); // => "my-strıng"
|
||||
Loading…
Reference in New Issue
Block a user