mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Type definitions and tests for param-case
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user