MCPcopy Index your code
hub / github.com/CapSoftware/Cap / getObjectKeyHash

Function getObjectKeyHash

packages/web-backend/src/Storage/StorageRepo.ts:16–17  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

14import { Database } from "../Database.ts";
15
16export const getObjectKeyHash = (key: string) =>
17 createHash("sha256").update(key).digest("hex");
18
19const escapeLikePattern = (value: string) =>
20 value.replace(/[\\%_]/g, (match) => `\\${match}`);

Callers 1

StorageRepoClass · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected