readme.md 636 Bytes

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