Natural Preference for Minification

npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

titleize

2.1.0 • Public • Published

titleize Build Status

Capitalize every word in a string: unicorn cakeUnicorn Cake

Install

$ npm install titleize

Usage

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

Related

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

License

MIT © Sindre Sorhus

install

npm i titleize

Downloadsweekly downloads

129,079

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability