MCPcopy
hub / github.com/prisma/prisma / getCLIPathHash

Function getCLIPathHash

packages/internals/src/cli/hashes.ts:20–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * which can be either global or local (in project's node_modules)
19 */
20export function getCLIPathHash(): string {
21 const cliPath = process.argv[1]
22 return crypto.createHash('sha256').update(cliPath).digest('hex').substring(0, 8)
23}

Callers 2

parseMethod · 0.90
runCheckpointClientCheckFunction · 0.90

Calls 2

digestMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected