camelcase-object

Convert object keys recursivly to camelCase


Keywords
map, obj, object, key, keys, value, values, val, iterate, camelcase, camel-case, camel, case, dash, hyphen, dot, underscore, separator, string, text, convert
License
MIT
Install
npm install camelcase-object@1.0.0

Documentation

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