to-camel-case

Convert a string to camel case.

npm install to-camel-case
6 downloads in the last day
55 downloads in the last week
202 downloads in the last month

to-camel-case

Convert a string to a camel case.

Installation

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

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

Example

var camel = require('to-camel-case');

camel('space case'); // "spaceCase"
camel('snake_case'); // "snakeCase"
camel('dot.case');   // "dotCase"
camel('weird[case'); // "weirdCase"

API

toCamelCase(string)

Returns the camel-case variant of a string.

License

MIT

npm loves you