Skip to content

export-mike/camelcase-keys-recursive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5979912 · Oct 26, 2022

History

56 Commits
Oct 26, 2022
Nov 10, 2015
Oct 26, 2022
Oct 26, 2022
Nov 10, 2015
Nov 10, 2015
Oct 26, 2022
Mar 10, 2015
Jun 21, 2019
Oct 26, 2022
Oct 26, 2022
Feb 9, 2015
Oct 27, 2016
Oct 26, 2022
Oct 26, 2022

Repository files navigation

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.