BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/simple-ai/id-to-readable-text

id-to-readable-text

simple-ai/id-to-readable-text
FreeUtility

A utility for converting an ID to a readable text.

Live preview

live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://simple-ai.dev/r/id-to-readable-text.json

Source

./src/registry/lib/id-to-readable-text.tssimple-ai.dev/r/id-to-readable-text.json
1export function idToReadableText(
2 id: string,
3 options?: { capitalize?: boolean },
4): string {
5 const { capitalize = true } = options || {};
6 const readable = id
7 .replace(/([a-z])([A-Z])/g, "$1 $2")
8 .replace(/[_-]/g, " ")
9 .toLowerCase();
10
11 return capitalize
12 ? readable.replace(/\b\w/g, (l) => l.toUpperCase())
13 : readable;
14}

Files it writes

  • ./src/registry/lib/id-to-readable-text.ts

Facts

Registry
simple-ai
Type
registry:lib
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on simple-ai simple-ai.dev Alwurts/simple-ai on GitHub Raw registry item This item as JSON

More from simple-ai

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
agent-respondagent-respondsimple-aiUtilitiesFree1 dep
agents-tools-registryagents-tools-registrysimple-aiUtilitiesFree1 dep · 2 files
ai-utilsai-utilssimple-aiUtilitiesFree1 dep
Exa Agentexa-agentsimple-aiUtilitiesFree1 dep
exa-toolexa-toolsimple-aiUtilitiesFree3 deps
Firecrawl Agentfirecrawl-agentsimple-aiUtilitiesFree1 dep
firecrawl-toolfirecrawl-toolsimple-aiUtilitiesFree3 deps
get-weatherget-weathersimple-aiUtilitiesFree2 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