MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / createId

Function createId

app/jsonDoc.server.ts:135–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135function createId(): string {
136 const nanoid = customRandom(
137 "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
138 12,
139 (bytes: number): Uint8Array => {
140 const array = new Uint8Array(bytes);
141 crypto.getRandomValues(array);
142 return array;
143 }
144 );
145 return nanoid();
146}
147
148function isUrl(possibleUrl: string): boolean {
149 try {

Callers 2

createFromUrlFunction · 0.85
createFromRawJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected