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
    6,437
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    6,437
  • 3.0.0
    2,424,684
  • 2.1.0
    271,583
  • 2.0.0
    29
  • 1.0.1
    83,326
  • 1.0.0
    165,222

Package Sidebar

Install

npm i titleize

Weekly Downloads

2,951,281

Version

4.0.0

License

MIT

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus