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.03,733latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.03,733
0.8.3142
0.8.2149
0.8.13
0.8.03
0.7.03
0.6.03
0.5.03
0.4.03
0.3.03
0.2.03
0.1.03
0.0.43
0.0.33
0.0.23
0.0.13

Package Sidebar

Install

npm i camelcase-keys-recursive

Weekly Downloads

3,262

Version

1.0.0

License

MIT

Unpacked Size

7.48 kB

Total Files

7

Last publish

Collaborators

  • mikeljames