Deeply convert the camelized keys of an object into a lowercased one with a custom separator
Example:{unicornRainbow: {fooBar: 1}}
→{unicorn_rainbow: {foo_bar: 1}}
$ npm install --save decamelize-keys-deep
const decamelizeKeysDeep = require('decamelize-keys-deep');
decamelizeKeysDeep({unicornRainbow: {fooBar: 1}});
//=> {unicorn_rainbow: {foo_bar: 1}}
decamelizeKeysDeep({unicornRainbow: {fooBar: 1}}, '-');
//=> {unicorn-rainbow: {foo-bar: 1}}
Type: object
Type: string
Default: _
See camelcase-keys-deep
for the inverse.
MIT © Rafael Xavier de Souza