|
|
il y a 3 ans | |
|---|---|---|
| .. | ||
| index.js | il y a 3 ans | |
| package.json | il y a 3 ans | |
| readme.md | il y a 3 ans | |
Convert object keys to camelCase using
camelcase
$ npm install --save camelcase-keys
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}
MIT © Sindre Sorhus