jsdom: Detailed Overview & Metrics

v26.0.0(4 days ago)

This package is actively maintained.Types definitions are provided via a separate npm package: @types/jsdomNumber of direct dependencies: 21Monthly npm downloads

jsdom is a JavaScript implementation of the WHATWG DOM and HTML standards, used for simulating a browser environment in Node.js. It allows developers to create a virtual DOM, manipulate HTML elements, and run browser-like operations such as parsing and rendering web pages. jsdom is commonly used for testing, web scraping, and server-side rendering of JavaScript applications.

Compared to alternatives like Puppeteer or Cheerio, jsdom focuses specifically on providing a full DOM implementation, making it suitable for scenarios where a complete browser environment is needed. It is actively maintained with regular updates and improvements, ensuring compatibility with the latest web standards.

Alternatives:
cheerio+
puppeteer+
selenium-webdriver+
playwright+
cypress+
nightwatch+
protractor+
testcafe+
taiko+
phantomjs+

Tags: javascriptdomhtmlbrowsernode.js