Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 7 år sedan | |
---|---|---|
.. | ||
index.js | 7 år sedan | |
license | 7 år sedan | |
package.json | 7 år sedan | |
readme.md | 7 år sedan |
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