Motivated by recent supply-chain attacks in the npm ecosystem, I built a lightweight bash tool to run nodejs scripts safely inside docker.It keeps node_modules in a persistent docker volume and blocks network access by default, so you can install and test packages without polluting your system.
Repo: https://github.com/freakynit/simple-npm-sandbox