npm now has the ability to approve/deny scripts per-package just like pnpm 🎉
Post
docs.npmjs.comnpm-approve-scripts | npm DocsApprove install scripts for specific dependencies
It's a phased rollout and It'll be fully usable in the next major release coming soon AFAIK. For now I'd stick to this recommendation lavamoat.github.io/guides/harde...
lavamoat.github.ioHarden your local development environmentA guide on how to settings that minimise the risk of local dev compromise.
You are misreading allow-scripts. I was talking about the flags that were introduced in v11.15. github.com/npm/cli/comm...
github.comfeat: add allow-git/allow-file/allow-directory/allow-remote configs · npm/cli@8df10f5(cherry picked from commit 8605d1088145593585278977e25b353b5dd6a1ed)
Sounds good. Start with trying out the current recommended config. I'll be posting about new tools next week. There's also github.com/lavamoat/kip... you could try out before I release
github.comGitHub - LavaMoat/kipuka: Easy, composable and transparent way to run things in a docker container.Easy, composable and transparent way to run things in a docker container. - LavaMoat/kipuka