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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    7,546
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    7,546
  • 3.0.0
    2,730,188
  • 2.1.0
    266,748
  • 2.0.0
    3
  • 1.0.1
    52,889
  • 1.0.0
    227,210

Package Sidebar

Install

npm i titleize

Weekly Downloads

3,284,584

Version

4.0.0

License

MIT

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus