Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 501 Bytes

readme.md

File metadata and controls

28 lines (16 loc) · 501 Bytes

titleize Build Status

Capitalize every word in a string: unicorn cakeUnicorn 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