lhl 55a7808c4f create | há 6 meses atrás | |
---|---|---|
.. | ||
index.js | há 6 meses atrás | |
license | há 6 meses atrás | |
package.json | há 6 meses atrás | |
readme.md | há 6 meses atrás |
Convert a camelized string into a lowercased one with a custom separator
Example:unicornRainbow
→unicorn_rainbow
$ npm install --save decamelize
const decamelize = require('decamelize');
decamelize('unicornRainbow');
//=> 'unicorn_rainbow'
decamelize('unicornRainbow', '-');
//=> 'unicorn-rainbow'
Type: string
Type: string
Default: _
See camelcase
for the inverse.
MIT © Sindre Sorhus