1 # camelcase-keys [![Build Status](https://travis-ci.org/sindresorhus/camelcase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase-keys)
3 > Convert object keys to camelCase using [`camelcase`](https://github.com/sindresorhus/camelcase)
9 $ npm install --save camelcase-keys
16 const camelcaseKeys = require('camelcase-keys');
19 camelcaseKeys({'foo-bar': true});
22 // Convert an array of objects
23 camelcaseKeys([{'foo-bar': true}, {'bar-foo': false}]);
24 //=> [{fooBar: true}, {barFoo: false}]
26 camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true});
27 //=> {fooBar: true, nested: {unicornRainbow: true}}
31 const camelcaseKeys = require('camelcase-keys');
33 const argv = require('minimist')(process.argv.slice(2));
34 //=> {_: [], 'foo-bar': true}
37 //=> {_: [], fooBar: true}
43 ### camelcaseKeys(input, [options])
47 Type: `Object` `Object[]`
49 Object or array of objects to camelCase.
57 Type: `string[]` `RegExp[]`<br>
60 Exclude keys from being camelCased.
67 Recurse nested objects and objects in arrays.
72 MIT © [Sindre Sorhus](https://sindresorhus.com)