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

Function digest

packages/plugins/apps/src/vite.ts:12–13  ·  view source on GitHub ↗
(value: string | Uint8Array)

Source from the content-addressed store, hash-verified

10const clientAssetsDir = "dist/client/assets";
11
12const digest = (value: string | Uint8Array): string =>
13 createHash("sha256").update(value).digest("hex").slice(0, 12);
14
15const artifactPaths = (artifact: {
16 readonly source: string;

Callers 1

artifactPathsFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected