M
M
mrHalid2018-09-23 23:35:06
Node.js
mrHalid, 2018-09-23 23:35:06

I wanted to ask that module vm can I use my projects, is it safe?

-------------------------------------------------- ------------------require("vm")--------------------- ------------------------------------

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-09-24
@mrHalid

https://nodejs.org/api/vm.html
it says in bold: "The vm module is not a security mechanism. Do not use it to run untrusted code."
That is, it does not give any security at all, it only allows you to execute code in a different context.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question