codeql-action/node_modules/titleize
github-actions[bot] 40a500c743 Update checked-in dependencies 2023-07-13 09:09:17 +00:00
..
index.d.ts Update checked-in dependencies 2023-07-13 09:09:17 +00:00
index.js Update checked-in dependencies 2023-07-13 09:09:17 +00:00
license Update checked-in dependencies 2023-07-13 09:09:17 +00:00
package.json Update checked-in dependencies 2023-07-13 09:09:17 +00:00
readme.md Update checked-in dependencies 2023-07-13 09:09:17 +00:00

readme.md

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'
  • camelcase - Convert a dash/dot/underscore/space separated string to camelcase