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

humanize-string Build Status

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

Install

$ npm install humanize-string

Usage

const humanizeString = require('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

License

MIT © Sindre Sorhus

Current Tags

  • 3.0.0                                ...           latest (4 years ago)

3 Versions

  • 3.0.0                                ...           4 years ago
  • 1.0.2                                ...           7 years ago
  • 2.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org