MCPcopy
hub / github.com/21st-dev/1code / createId

Function createId

src/main/lib/db/utils.ts:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2 * Generate a unique ID (cuid-like)
3 */
4export function createId(): string {
5 const timestamp = Date.now().toString(36)
6 const randomPart = Math.random().toString(36).substring(2, 10)
7 return `${timestamp}${randomPart}`
8}

Callers 3

index.tsFile · 0.90
storeOAuthTokenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected