mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Type definitions and tests for snake-case
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="snake-case.d.ts" />
|
||||
|
||||
import camelCase = require('snake-case');
|
||||
|
||||
console.log(camelCase('string')); // => "string"
|
||||
console.log(camelCase('camelCase')); // => "camel_case"
|
||||
console.log(camelCase('sentence case')); // => "sentence_case"
|
||||
|
||||
console.log(camelCase('MY STRING', 'tr')); // => "my_strıng"
|
||||
Reference in New Issue
Block a user