|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| index.js | %!s(int64=3) %!d(string=hai) anos | |
| license | %!s(int64=3) %!d(string=hai) anos | |
| package.json | %!s(int64=3) %!d(string=hai) anos | |
| readme.md | %!s(int64=3) %!d(string=hai) anos | |
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