
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
min-document
Advanced tools
A minimal DOM implementation
var document = require("min-document")
var div = document.createElement("div")
div.className = "foo bar"
var span = document.createElement("span")
div.appendChild(span)
span.textContent = "Hello!"
/* <div class="foo bar">
<span>Hello!</span>
</div>
*/
var html = String(div)
npm install min-document
jsdom is a more feature-complete implementation of the DOM for Node.js. It simulates a web browser's environment and can execute scripts, handle events, and perform layout calculations. It is heavier than min-document but is suitable for more complex tasks that require a closer approximation to a full browser environment.
domino is another server-side DOM implementation designed for use with Node.js. It aims to provide a high-fidelity and high-performance representation of the DOM. It is more complete than min-document but still lighter than jsdom, striking a balance between functionality and performance.
cheerio is a fast, flexible, and lean implementation of core jQuery designed specifically for the server. It is not a full DOM API implementation but provides a familiar and powerful API for manipulating HTML documents. It is well-suited for tasks like web scraping and HTML document transformation.
FAQs
A minimal DOM implementation
The npm package min-document receives a total of 2,522,436 weekly downloads. As such, min-document popularity was classified as popular.
We found that min-document demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.