MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / newId

Function newId

packages/plugins/toolkits/src/server.ts:86–87  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

84}
85
86const newId = (prefix: string): string =>
87 `${prefix}_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`;
88
89const slugPattern = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
90

Callers 3

createFunction · 0.85
createPolicyFunction · 0.85
createConnectionFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected