sindresorhus

decamelize

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

by sindresorhus

JavaScript

JavaScript97.4%
TypeScript2.6%

Commit activity

Last 12 weeks · 11 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
KIRA-L001

Add a option that inserts the separator between letter/digit boundaries (e.g. -> ). Off by default, so existing behaviour is unchanged. Includes TypeScript definitions and tests.

KIRA-L001 · 1w ago
sohail-fabtech

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.

sohail-fabtech · 1w ago
daytonlowell

This is fixed per the WebKit bug tracker: https://bugs.webkit.org/show_bug.cgi?id=174931 caniuse.com claims it was released in 2023 with Safari 16.4

daytonlowell · 7mo ago
Structured data for AI agents

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.