titleize
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

titleize

Capitalize every word in a string: unicorn cakeUnicorn Cake

Install

npm install titleize

Usage

import titleize from 'titleize';

titleize('foo bar');
//=> 'Foo Bar'

titleize('foo-bar');
//=> 'Foo-Bar'

Related

  • camelcase - Convert a dash/dot/underscore/space separated string to camelcase

Package Sidebar

Install

npm i titleize

Weekly Downloads

3,967,484

Version

4.0.0

License

MIT

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus