MCPcopy
hub / github.com/lightningpixel/modly / hashRequirements

Function hashRequirements

electron/main/python-setup.ts:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22function hashRequirements(): string {
23 try {
24 const content = readFileSync(getRequirementsPath(), 'utf-8')
25 return createHash('sha256').update(content).digest('hex')
26 } catch {
27 return ''
28 }
29}
30
31// ─── Environment ─────────────────────────────────────────────────────────────
32

Callers 2

checkSetupNeededFunction · 0.85
markSetupDoneFunction · 0.85

Calls 1

getRequirementsPathFunction · 0.85

Tested by

no test coverage detected