MCPcopy Index your code
hub / github.com/coder/mux / hashText

Function hashText

src/node/runtime/remoteProjectLayout.ts:25–27  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

23}
24
25function hashText(input: string): string {
26 return crypto.createHash("sha256").update(input).digest("hex").slice(0, 12);
27}
28
29export function createRemoteProjectId(projectPath: string): string {
30 const normalizedPath = projectPath.replace(/\\/g, "/");

Callers 1

createRemoteProjectIdFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected