UNPKG

@alavida/agentpack

Version:

Compiler-driven lifecycle CLI for source-backed agent skills

8 lines (6 loc) 235 B
import { createHash } from 'node:crypto'; import { readFileSync } from 'node:fs'; export function hashFile(filePath) { const digest = createHash('sha256').update(readFileSync(filePath)).digest('hex'); return `sha256:${digest}`; }