Package detail

just-capitalize

angus-c44.2kMIT3.2.0

capitalize the first character of a string

capitalize, string, no-dependencies, just

readme

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'
*/

changelog

just-capitalize

3.2.0

Minor Changes

  • Rename node module .js -> .cjs

3.1.1

Patch Changes

  • fix: reorder exports to set default last #488

3.1.0

Minor Changes

  • package.json updates to fix #467 and #483