humanize-string
Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`
Last updated 8 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install humanize-string 
SYNC missed versions from official npm registry.

humanize-string

Convert a camelized/dasherized/underscored string into a humanized one Example: fooBar-Baz_Faz → Foo 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

Current Tags

  • 4.0.0                                ...           latest (a month ago)

8 Versions

  • 4.0.0                                ...           a month ago
  • 3.1.0                                ...           a year ago
  • 3.0.0                                ...           5 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 27
Today 1
This Week 7
This Month 23
Last Day 4
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (3)
Dependents (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE