@reflect/titleize
v2.0.3
Published
Capitalize every word in a string: unicorn cake → Unicorn Cake
Downloads
5
Readme
titleize
Capitalize every word in a string:
unicorn cake
→Unicorn Cake
Install
$ npm install --save titleize
Usage
const titleize = require('@reflect/titleize');
titleize('foo bar');
//=> 'Foo Bar'
titleize('foo-bar');
//=> 'Foo Bar'
License
MIT © Sindre Sorhus, Brad Heller