MCPcopy Create free account
hub / github.com/awslabs/llrt / uid

Function uid

example/functions/src/api.ts:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import { Todo } from "./react/TodoList";
11
12const uid = () =>
13 String.fromCharCode(
14 ...randomBytes(20).map((d) => {
15 return (d > 127 ? 97 : 65) + (d % 25);
16 })
17 ) + new Date().getTime();
18
19const CLIENT = new DynamoDBClient({});
20const DOCUMENT_CLIENT = DynamoDBDocumentClient.from(CLIENT as any);

Callers 1

api.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected