Vika a1fdb9607d hw react2 | hace 2 años | |
---|---|---|
.. | ||
node_modules | hace 2 años | |
index.js | hace 2 años | |
license | hace 2 años | |
package.json | hace 2 años | |
readme.md | hace 2 años |
Convert object keys from camelCase to lowercase with a custom separator using
decamelize
This project was forked from camelcase-keys
and converted to do the opposite
$ npm install --save decamelize-keys
const decamelizeKeys = require('decamelize-keys');
decamelizeKeys({fooBar: true}, '-');
//=> {'foo-bar': true}
Type: object
Required
Object to decamelize.
Type: string
Default: _
A string to insert between words.
Type: object
Type: string
Default: _
Alternative way to specify separator.
Type: array
Default: []
Exclude keys from being decamelized.
See camelcase-keys
for the inverse.
MIT © Sindre Sorhus, Dmirty Sobolev