# jsdom A javascript implementation of the W3C DOM. ## Install npm install jsdom or git clone http://github.com/tmpvar/jsdom.git cd jsdom npm link ## Human contact see: [mailing list][] [mailing list]: http://groups.google.com/group/jsdom ## Easymode Bootstrapping a DOM is generally a difficult process involving many error prone steps. We didn't want jsdom to fall into the same trap and that is why a new method, `jsdom.env()`, has been added in jsdom 0.2.0 which should make everyone's lives easier. with URL // Count all of the links from the nodejs build page var jsdom = require("jsdom"); jsdom.env("http://nodejs.org/dist/", [ 'http://code.jquery.com/jquery-1.5.min.js' ], function(errors, window) { console.log("there have been", window.$("a").length, "nodejs releases!"); }); or with raw html // Run some jQuery on a html fragment var jsdom = require('jsdom'); jsdom.env('