+ you can make a network namespace and have separate iptables just for that namespace/app, you can for example give the namespace/app a VPN connection without affecting the rest of the system. And other apps can join the namespace and communicate as if they had their own isolated network.
NodeJS is also working on policies (1) which allows you to change permission to single modules or files.
NodeJS is also working on policies (1) which allows you to change permission to single modules or files.
1) https://nodejs.org/api/policy.html