camelcase-keys-recursive

1.0.0 • Public • Published

npm version

Build Status

Simple usage:

var camelGotHumps = camelCaseRecursive({'test-1':123, 'test-2':{'test-3:':{'test-four':132}}});

//{ test1: 123, test2: { 'test3:': { testFour: 132 } } }
console.log(camelGotHumps);

Works with Arrays too:

var anotherCamelWithTheHump = camelCaseRecursive({
	'test-1': 123,
	'test-Two': [{
		'test-three': {
			'test-FOUR': [{'test-five':[{testSix:{'test-seven':8}}]}]
		}
	}]
});

//{"test1":123,"testTwo":[{"testThree":{"testFOUR":[{"testFive":[{"testSix":{"testSeven":8}}]}]}}]}console.log(
JSON.stringify(anotherCamelWithTheHump));

More information on internal modules

map-obj

Contributing

Simply make a pr with details on your bug and tests.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.04,227latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.04,227
0.8.3105
0.8.2192
0.8.10
0.8.00
0.7.00
0.6.00
0.5.00
0.4.00
0.3.00
0.2.00
0.1.00
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i camelcase-keys-recursive

Weekly Downloads

4,482

Version

1.0.0

License

MIT

Unpacked Size

7.48 kB

Total Files

7

Last publish

Collaborators

  • mikeljames