JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3840
  • Score
    100M100P100Q130769F
  • License MIT

Adaptation of camelcase-keys but recursive.

Package Exports

  • camelcase-keys-recursive

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (camelcase-keys-recursive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.