humanize-string

Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
humanize-string
10413.0.03 years ago9 years agoMinified + gzip package size for humanize-string in KB

Readme

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