How to execute an HTML + Javascript page using Node.js

So I have a Node.js script. And I have an HTML page that contains HTML with JavaScript (jquery) in it. How to download it and get the result of JavaScript on this page?

+4
source share
2 answers

Something like JSDOM should do this.

https://github.com/tmpvar/jsdom

+4
source

You can check out the zombie.js project: http://zombie.labnotes.org/

It should load the page basically like in a real browser.

+3
source

All Articles