Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
export
function
generateId(prefix?: string, length?: number) {
8
return
prefix ? `${prefix}_${nanoid(length ?? 8)}` : nanoid(length ?? 8);
9
}
Callers
4
buildApp
Function · 0.90
handleTrack
Function · 0.90
postEvent
Function · 0.90
insertFakeEvents
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected