humanize-string
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

humanize-string

Convert a camelized/dasherized/underscored string into a humanized one Example: fooBar-Baz_FazFoo bar baz faz

Install

npm install humanize-string

Usage

import humanizeString from 'humanize-string';

humanizeString('fooBar');
//=> 'Foo bar'

humanizeString('foo-bar');
//=> 'Foo bar'

humanizeString('foo_bar');
//=> 'Foo bar'

Related

  • camelcase - Convert a dash/dot/underscore/space separated string to camelcase

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    17,837
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    17,837
  • 2.1.0
    190,708
  • 2.0.0
    102
  • 1.0.2
    16,232
  • 1.0.1
    44,212
  • 1.0.0
    1

Package Sidebar

Install

npm i humanize-string

Weekly Downloads

269,092

Version

3.0.0

License

MIT

Unpacked Size

3.37 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus