camelcase-object

1.0.0 • Public • Published

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}]}

Package Sidebar

Install

npm i camelcase-object

Weekly Downloads

27

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kirotnes