npm

Need private packages and team management tools?Check out npm Orgs. »

humanize-string

2.1.0 • Public • Published

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

install

npm i humanize-string

Downloadsweekly downloads

109,049

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability