mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
393 B
393 B
titleize
Capitalize every word in a string:
unicorn cake→Unicorn 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