BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/utilcn/capitalize

Capitalize

utilcn/capitalize
FreeUtility

Capitalize the first letter of a string.

Install it

npx shadcn@latest add https://utilcn.dev/r/capitalize.json

Source

registry/default/strings/capitalize.tsutilcn.dev/r/capitalize.json
1/**
2 * Capitalizes the first character of a string.
3 *
4 * @param str - The input string.
5 * @returns The string with the first character uppercased.
6 *
7 * @example
8 * capitalize("typescript"); // "Typescript"
9 */
10export function capitalize(str: string): string {
11 if (!str) return '';
12 return str.charAt(0).toUpperCase() + str.slice(1);
13}

Files it writes

  • registry/default/strings/capitalize.ts

Facts

Registry
utilcn
Type
registry:lib
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

utilcn.dev BrennenRocks/utilcn on GitHub Raw registry item This item as JSON

More from utilcn

All 17 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Capitalize Allcapitalize-allutilcnUtilitiesFreeno deps
Environment Server Configurationenv-serverutilcnUtilitiesFree1 dep
Generate Presigned Download URLgenerate-presigned-download-urlutilcnUtilitiesFree2 deps · 2 files
Generate Presigned Upload URLgenerate-presigned-upload-urlutilcnUtilitiesFree2 deps · 2 files
Repeat Padrepeat-padutilcnUtilitiesFreeno deps
Reverse Stringreverse-stringutilcnUtilitiesFreeno deps
To Camel Caseto-camel-caseutilcnUtilitiesFreeno deps
To Kebab Caseto-kebab-caseutilcnUtilitiesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex