Skip to content

scriptvet 1.0.0

Choose a tag to compare

@feresbr1 feresbr1 released this 19 Oct 10:01
· 3 commits to main since this release

First release of scriptvet: npm 12, pnpm 11 and Bun no longer run dependency install scripts by default. scriptvet shows what each one does and writes the allowlist.

npx github:feresbr1/scriptvet --write

Or download scriptvet.mjs below and run node scriptvet.mjs in your project (Node.js 18.17+, no dependencies).

  • Finds preinstall / install / postinstall scripts (and implicit node-gyp builds) in npm, pnpm, Yarn and Bun lockfiles
  • Reads the code each script runs for the exact version and classifies it: native build, binary download, binary check, message, git hooks, code generation, or review
  • Writes allowScripts (npm), allowBuilds (pnpm), dependenciesMeta (Yarn) or trustedDependencies (Bun), pinned to the reviewed versions
  • --check for CI
  • Generated config verified with npm 12.2.0 --strict-allow-scripts and pnpm 11.28.6

Website: https://feresbr1.github.io/scriptvet/