decamelize-keys ![Build Status](https://camo.githubusercontent.com/193fd70373cfb8fa9c0f157eb417c7a899dfefce29c1c8d15d0ca2156201659f/68747470733a2f2f7472617669732d63692e6f72672f6473626c762f646563616d656c697a652d6b6579732e7376673f6272616e63683d6d6173746572)
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
Install
$ npm install --save decamelize-keys
Usage
const decamelizeKeys = require('decamelize-keys');
decamelizeKeys({fooBar: true}, '-');
//=> {'foo-bar': true}
API
decamelizeKeys(input, [separator], [options])
input
Type: object
Required
Object to decamelize.
separator
Type: string
Default: _
A string to insert between words.
options
Type: object
separator
Type: string
Default: _
Alternative way to specify separator.
exclude
Type: array
Default: []
Exclude keys from being decamelized.
Related
See camelcase-keys
for the inverse.
License
MIT © Sindre Sorhus, Dmirty Sobolev