Name Last Update
..
index.js Loading commit data...
package.json Loading commit data...
readme.md Loading commit data...

camelcase-keys Build Status

Convert object keys to camelCase using camelcase

Install

$ npm install --save camelcase-keys

Usage

var camelcaseKeys = require('camelcase-keys');

camelcaseKeys({'foo-bar': true});
//=> {fooBar: true}


var argv = require('minimist')(process.argv.slice(2));
//=> {_: [], 'foo-bar': true}

camelcaseKeys(argv);
//=> {_: [], fooBar: true}

License

MIT © Sindre Sorhus