decamelize (4.0.0)
Published 2026-02-24 13:55:12 +00:00 by atheaadmin
Installation
registry=npm install decamelize@4.0.0"decamelize": "4.0.0"About this package
decamelize 
Convert a camelized string into a lowercased one with a custom separator
Example:unicornRainbow→unicorn_rainbow
Install
$ npm install 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: '_'
Related
See camelcase for the inverse.
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| ava | ^2.4.0 |
| tsd | ^0.11.0 |
| xo | ^0.24.0 |
Keywords
decamelize
decamelcase
camelcase
lowercase
case
dash
hyphen
string
text
convert
Details
Assets (1)
Versions (3)
View all
decamelize-4.0.0.tgz
2.0 KiB