to-camel-case

Convert a string to camel case.

to-camel-case

Convert a string to a camel case.

$ component install ianstormtaylor/to-camel-case
$ npm install to-camel-case

Big thanks to @Nami-Doc for graciously giving up the npm package name :)

var camel = require('to-camel-case');
 
camel('space case'); // "spaceCase" 
camel('snake_case'); // "snakeCase" 
camel('dot.case');   // "dotCase" 
camel('weird[case'); // "weirdCase" 

Returns the camel-case variant of a string.

MIT