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
    16,338
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    16,338
  • 2.1.0
    189,588
  • 2.0.0
    90
  • 1.0.2
    48,629
  • 1.0.1
    1,371
  • 1.0.0
    8

Package Sidebar

Install

npm i humanize-string

Weekly Downloads

204,778

Version

3.0.0

License

MIT

Unpacked Size

3.37 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus