Transform object keys easily using whatever transform function
npm install transform-obj-keys> Transform object keys easily using whatever transform function like: camelcase, decamelize, uppercamelcase, to-case or simple String.prototype.toLowerCase()
```
$ npm install --save transform-obj-keys
`js
const transformObjKeys = require('transform-obj-keys');
const camelCase = require('camelcase');
// Convert an object
transformObjKeys({'foo-bar': true}, camelCase);
//=> {fooBar: true}
// Convert an array of objects
transformObjKeys([{'foo-bar': true}, {'bar-foo': false}], camelCase);
//=> [{fooBar: true}, {barFoo: false}]
transformObjKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, camelCase, {deep: true});
//=> {fooBar: true, nested: {unicornRainbow: true}}
`
`js
const transformObjKeys = require('transform-obj-keys');
const camelCase = require('camelcase');
const argv = require('minimist')(process.argv.slice(2));
//=> {_: [], 'foo-bar': true}
transformObjKeys(argv, camelCase);
//=> {_: [], fooBar: true}
`
#### input
Type: Object Object[]
Object or array of objects to transform.
#### transformFunc
Type: Function
Function to manipulate strings
#### options
Type: Object
##### exclude
Type: string[] RegExp[][]
Default:
Exclude keys from being transformed.
##### deep
Type: booleanfalse`
Default:
Recurse nested objects and objects in arrays.
MIT © Martin Litvaj