|
|
||||
|---|---|---|---|---|
| .. | ||||
| index.js | 11e3a9652a | 7 anos atrás | ||
| license | 11e3a9652a | 7 anos atrás | ||
| package.json | 11e3a9652a | 7 anos atrás | ||
| readme.md | 11e3a9652a | 7 anos 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