Package Exports
- camel-case
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (camel-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Camel Case
Camel case a string. Explicitly adds a single underscore between groups of numbers to keep readability (E.g. 1.20.5
becomes 1_20_5
, not 1205
).
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString
property, numbers and booleans. Empty values (null
and undefined
) will result in an empty string.
Installation
Node
npm install camel-case --save
Usage
var camelCase = require('camel-case');
camelCase('string'); //=> "string"
camelCase('dot.case'); //=> "dotCase"
camelCase('PascalCase'); //=> "pascalCase"
camelCase('version 1.2.10'); //=> "version1_2_10"
camelCase('STRING 1.2', 'tr'); //=> "strıng1_2"
License
MIT