tg-bot-reminder/node_modules/titleize
2023-08-13 16:48:04 +03:00
..
index.d.ts initial commit 2023-08-13 16:48:04 +03:00
index.js initial commit 2023-08-13 16:48:04 +03:00
license initial commit 2023-08-13 16:48:04 +03:00
package.json initial commit 2023-08-13 16:48:04 +03:00
readme.md initial commit 2023-08-13 16:48:04 +03:00

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