sindresorhus

humanize-string

Convert a camelized/dasherized/underscored string into a humanized one: fooBar-Baz_Faz → Foo bar baz faz

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 13 commits

Full graph →

Community health

4 of 6 standards met

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

The function uppercases the first UTF-16 code unit rather than the complete first character. A lowercase Deseret letter therefore remains lowercase, even though native case conversion can uppercase it. Reproduction Expected: Uppercase the complete first Unicode character. U+10428 should become U+10400. Suggested fix: Read the first Unicode code point before uppercasing and replacing it. Version: 3.1.0. Environment: Node.js v24.19.0.

sohail-fabtech · 1w ago
exentrich

Thanks for such great library! Would be great to have ability to keep original letter case. For example this string is converted to boring

exentrich · 1y ago
jwlms

Hey this is a very useful package — thanks for publishing it! I did notice however that it doesn't seem to work correctly in Safari. At first glance it seems like the issue is being caused by and its use of lookbehind which isn't supported in Safari. Here's the error I am seeing in case this is something you want to address:

jwlms · 2y ago
Structured data for AI agents

Repository: sindresorhus/humanize-string. Description: Convert a camelized/dasherized/underscored string into a humanized one: fooBar-Baz_Faz → Foo bar baz faz Stars: 112, Forks: 12. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v4.0.0 (1w ago). Open PRs: 0, open issues: 0. Last activity: 1w ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, Richienb, stoeffel.