titleize Capitalize every word in a string: unicorn cake → Unicorn Cake Install $ npm install --save titleize Usage const titleize = require('titleize'); titleize('foo bar'); //=> 'Foo Bar' titleize('foo-bar'); //=> 'Foo-Bar' License MIT © Sindre Sorhus