min-document
v2.19.0
Published
A minimal DOM implementation
Downloads
22,255,239
Readme
min-document
A minimal DOM implementation
Example
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)
Installation
npm install min-document
Contributors
- Raynos