MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / generateId

Function generateId

packages/common/src/id.ts:7–9  ·  view source on GitHub ↗
(prefix?: string, length?: number)

Source from the content-addressed store, hash-verified

5}
6
7export function generateId(prefix?: string, length?: number) {
8 return prefix ? `${prefix}_${nanoid(length ?? 8)}` : nanoid(length ?? 8);
9}

Callers 4

buildAppFunction · 0.90
handleTrackFunction · 0.90
postEventFunction · 0.90
insertFakeEventsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected