MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / sri

Function sri

scripts/release-check.mjs:101–103  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

99section('Checking www/_data/integrity.json matches package.json + dist/...')
100
101function sri(path) {
102 return 'sha384-' + createHash('sha384').update(readFileSync(path)).digest('base64')
103}
104
105const integrityPath = join(repoRoot, 'www', '_data', 'integrity.json')
106let integrity

Callers 1

release-check.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected