humanize-string
Convert a camelized/dasherized/underscored string into a humanized one: fooBar-Baz_Faz → Foo bar baz faz
by sindresorhusJavaScript
Commit activity
Last 12 weeks · 13 commits
Community health
4 of 6 standards met
Recent fixes
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.
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:
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.