sensordb2 e64a8defe5 3.17 | 1 ano atrás | |
---|---|---|
.. | ||
index.js | 1 ano atrás | |
license | 1 ano atrás | |
package.json | 1 ano atrás | |
readme.md | 1 ano 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