Add sanitize.js: secret-free copy under a new passphrase (Refs #19)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 07:26:27 -05:00
parent 78bf87c4e6
commit 05ffcc8561
6 changed files with 161 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ There are no npm dependencies and no CDN or network calls at runtime.
```
build.js builds dist/final-wishes.html (optionally encrypting a JSON file into it)
sanitize.js `node sanitize.js --in real.html --out copy.html`: re-seals a copy with secrets erased under a new passphrase
bump-version.js `npm run bump`, and the pre-commit hook's engine: advances src/version.js to today's date + next letter
.githooks/pre-commit runs `bump-version.js --staged`; enable once per clone with `npm run hooks`
package.json scripts: build, seal, test