Skip to content

Capitalize every word in string: unicorn cake → Unicorn Cake

License

Notifications You must be signed in to change notification settings

reflect/titleize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Capitalize every word in string: unicorn cake → Unicorn Cake

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%