Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 393 Bytes

readme.md

File metadata and controls

25 lines (16 loc) · 393 Bytes

titleize

Capitalize every word in a string: unicorn cakeUnicorn Cake

Install

npm install titleize

Usage

import titleize from 'titleize';

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

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

Related

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