MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / base64urlIdWithTime

Function base64urlIdWithTime

shared/src/binary.ts:100–102  ·  view source on GitHub ↗
(epochMs: number)

Source from the content-addressed store, hash-verified

98}
99// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
100export function base64urlIdWithTime<T extends Base64Url>(epochMs: number) {
101 return arrayToBase64url(rawIdWithTime(epochMs)) as T
102}
103
104const _binary =
105 // doesn't actually error when built by `app`

Callers 1

arbitraryUlidFunction · 0.90

Calls 2

arrayToBase64urlFunction · 0.85
rawIdWithTimeFunction · 0.85

Tested by

no test coverage detected