Loading...
Convert a camelized string into a lowercased one with a custom separator Example: unicornRainbow → unicorn_rainbow
unicornRainbow
unicorn_rainbow
Type: string
string
Type: string Default: _
_
See for the inverse.
MIT ©
$ npm install --save decamelize
camelcase
const decamelize = require('decamelize'); decamelize('unicornRainbow'); //=> 'unicorn_rainbow' decamelize('unicornRainbow', '-'); //=> 'unicorn-rainbow'