camelcase-object
v1.0.0
Published
Convert object keys recursivly to camelCase
Downloads
1,257
Maintainers
Readme
This project is an extension of
camelcase-key
Convert object keys recursivly to camelCase using
camelcase
Install
$ npm install --save camelcase-object
Usage
const camelcaseObject = require('camelcase-object');
camelcaseObject({'foo-bar': true});
//=> {fooBar: true}
camelcaseObject({'foo-bar': {'bar-foo' : true});
//=> {fooBar: {barFoo:true}
camelcaseObject({'foo-bar': {'bar-foo' : [{'Test': true}]}});
//=> {fooBar: {barFoo:[{test:true}]}