Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var jsdom = require("jsdom"),
fs = require("fs");
fs.readFile("test.html", function(err, content) {
if(err) throw err;
var doc = jsdom.jsdom(content, jsdom.defaultLevel);
doc.addEventListener("load", function() {
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment