ts-ucfirst
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

ts-ucfirst npm Version workflow

Uppercase first character of a string in case you are too lazy to do it yourself

Example:

const ucfirst = require("ts-ucfirst");
ucfirst('hello world'); // 'Hello world'

Example to capitalize each word of a sentence:

const ucfirst = require("ts-ucfirst");
const sentence = "sentence to be all capitalized"
sentence.split(' ').map(ucfirst).join(' '); // 'Sentence To Be All Capitalized'  

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.6
    37
    • latest

Version History

Package Sidebar

Install

npm i ts-ucfirst

Weekly Downloads

37

Version

1.0.6

License

ISC

Unpacked Size

25.2 kB

Total Files

13

Last publish

Collaborators

  • capaio