2 ms·
npm scripts having same-as-you access to your computer in a linux-like environment is very different than JS running inside the browser sandbox though. By defau
by diggan 6y ago
npm scripts having same-as-you access to your computer in a linux-like environment is very different than JS running inside the browser sandbox though. By default its scoped to the origin its running on and with some additional header/html tags, can be further limited to just running your specific code and no get/post to other origins, and more.
So while running 3rd party code without inspecting it closely is always risky, its a lot more risky to run via node than via the browser js engine.