|
||||
---|---|---|---|---|
.. | ||||
node_modules | 11e3a9652a | 7 gadi atpakaļ | ||
index.js | 11e3a9652a | 7 gadi atpakaļ | ||
license | 11e3a9652a | 7 gadi atpakaļ | ||
package.json | 11e3a9652a | 7 gadi atpakaļ | ||
readme.md | 11e3a9652a | 7 gadi atpakaļ |
Convert object keys to camelCase using
camelcase
$ npm install --save camelcase-keys
const camelcaseKeys = require('camelcase-keys');
camelcaseKeys({'foo-bar': true});
//=> {fooBar: true}
const argv = require('minimist')(process.argv.slice(2));
//=> {_: [], 'foo-bar': true}
camelcaseKeys(argv);
//=> {_: [], fooBar: true}
Type: object
Object to camelCase.
Type: object
Type: array
Default: []
Exclude keys from being camelCased.
MIT © Sindre Sorhus