root 3bf41bf355 update | 1 jaar geleden | |
---|---|---|
.. | ||
index.js | 1 jaar geleden | |
license | 1 jaar geleden | |
package.json | 1 jaar geleden | |
readme.md | 1 jaar geleden |
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