lihai 8d6c751f49 feat: push | лет назад: 2 | |
---|---|---|
.. | ||
node_modules | лет назад: 2 | |
index.js | лет назад: 2 | |
license | лет назад: 2 | |
package.json | лет назад: 2 | |
readme.md | лет назад: 2 |
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