Node.js load and execute external script

I am creating a simple http client using Node.js.

I wonder how to execute a JS script downloaded from a web server (simulating a browser): my JS code already tested on FF3.6 contains both Web Workers and XMLHttpRequest Level 2.

Is Node.js capable of handling such code?

+3
source share
1 answer

You will find this in the VM module , which is part of the standard library. You will also find JSDOM .

+5
source

All Articles