BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/utilcn/reverse-string

Reverse String

utilcn/reverse-string
FreeUtility

Reverse a string.

Install it

npx shadcn@latest add https://utilcn.dev/r/reverse-string.json

Source

registry/default/strings/reverse-string.tsutilcn.dev/r/reverse-string.json
1/**
2 * Reverses the characters in a string.
3 *
4 * @param str - The input string.
5 * @returns The reversed string.
6 *
7 * @example
8 * reverseString("TypeScript"); // "tpircSpeyT"
9 */
10export function reverseString(str: string): string {
11 return str.split('').reverse().join('');
12}

Files it writes

  • registry/default/strings/reverse-string.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
CapitalizecapitalizeutilcnUtilitiesFreeno deps
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
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