npm (291B)
- #!/bin/execlineb -s0
- getcwd -E PWD
- bwrap
- --die-with-parent
- --unshare-all
- --share-net
- --ro-bind / / # On my ZFS machines that's just the OS, bind mounts doesn't recurses
- --tmpfs /tmp
- --dir /sysroot
- --bind $PWD /sysroot
- --chdir /sysroot
- --proc /proc
- --dev /dev
- -- /usr/bin/npm "$@"