(no title)
keraf | 5 months ago
I know it would take time for packages to adopt this but it could be implemented as parameters when installing a new dependency, like `npm i ping --allow-net`. I wouldn't give a library like chalk access to I/O, processes or network.
IanCal|5 months ago
You might be able to do this around install scripts, though disk writing is likely needed for all (but perhaps locations could be controlled).
Filligree|5 months ago
Yeah, it needs work from the language runtime, but I think even a hacky, leaky 'security' abstraction would be helpful, because the majority of malware developers probably aren't able to break out of a language-level sandbox, even if the language still allows you to do unsafe array access.
Then we can iterate.
____tom____|5 months ago
It's too bad, it would be useful in this situation