just-capitalize
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

just-capitalize

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

npm install just-capitalize
yarn add just-capitalize

Capitalize the first character of a string

  import capitalize from 'just-capitalize';

/*
  capitalize('capitals'); // 'Capitals'
  capitalize('Capitals'); // 'Capitals'
  capitalize('many words'); // 'Many words'
  capitalize('!exclaim'); // '!exclaim'
*/

Package Sidebar

Install

npm i just-capitalize

Weekly Downloads

4,879

Version

3.2.0

License

MIT

Unpacked Size

4.2 kB

Total Files

9

Last publish

Collaborators

  • angus-c