@cjser/titleize
v4.0.0-cjser.2
Published
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Maintainers
Readme
titleize
Capitalize every word in a string:
unicorn cake→Unicorn Cake
Install
npm install titleizeUsage
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
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/titleize
