decamelize
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
by sindresorhusJavaScript
Commit activity
Last 12 weeks · 11 commits
Community health
4 of 6 standards met
Recent fixes
A separator containing is interpreted as part of a replacement template. It repeats matched text instead of inserting the configured separator. An ordinary underscore separator works. Reproduction Expected: The custom-separator output should be . Suggested fix: Use replacement callbacks that concatenate the captured words with the literal separator. Version: 6.0.1. Environment: Node.js v24.19.0.
Repository: sindresorhus/decamelize. Description: Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow Stars: 245, Forks: 27. Primary language: JavaScript. Languages: JavaScript (97.4%), TypeScript (2.6%). License: MIT. Latest release: v7.0.0 (1w ago). Open PRs: 0, open issues: 0. Last activity: 1w ago. Community health: 85%. Top contributors: sindresorhus, coreyfarrell, SamVerschueren, BendingBender, adrianjarc, fc, daytonlowell, dsblv, johansteffner, LitoMore and others.