EventBuzz_Console/node_modules/decamelize
Ravi Gulhane 50cfd63778 first commit 2026-06-02 11:00:15 +05:30
..
index.js first commit 2026-06-02 11:00:15 +05:30
license first commit 2026-06-02 11:00:15 +05:30
package.json first commit 2026-06-02 11:00:15 +05:30
readme.md first commit 2026-06-02 11:00:15 +05:30

readme.md

decamelize Build Status

Convert a camelized string into a lowercased one with a custom separator
Example: unicornRainbow → unicorn_rainbow

Install

$ npm install --save decamelize

Usage

const decamelize = require('decamelize');

decamelize('unicornRainbow');
//=> 'unicorn_rainbow'

decamelize('unicornRainbow', '-');
//=> 'unicorn-rainbow'

API

decamelize(input, [separator])

input

Type: string

separator

Type: string
Default: _

See camelcase for the inverse.

License

MIT © Sindre Sorhus