File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ /// <reference path="camel-case.d.ts" />
2
+
3
+ import camelCase = require( 'camel-case' ) ;
4
+
5
+ console . log ( camelCase ( 'string' ) ) ; // => "string"
6
+ console . log ( camelCase ( 'dot.case' ) ) ; // => "dotCase"
7
+ console . log ( camelCase ( 'PascalCase' ) ) ; // => "pascalCase"
8
+ console . log ( camelCase ( 'version 1.2.10' ) ) ; // => "version1_2_10"
9
+
10
+ console . log ( camelCase ( 'STRING 1.2' , 'tr' ) ) ; // => "strıng1_2"
Original file line number Diff line number Diff line change
1
+ // Type definitions for camel-case
2
+ // Project: https://github.com/blakeembrey/camel-case
3
+ // Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
4
+ // Definitions: https://github.com/borisyankov/DefinitelyTyped
5
+
6
+ declare module "camel-case" {
7
+ function camelCase ( string : string , locale ?: string ) : string ;
8
+ export = camelCase ;
9
+ }
You can’t perform that action at this time.
0 commit comments