npm.devtool.tech
👏 You can access min-document package with using minDocument variable in browser devtools!
A minimal DOM implementation

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

min-document

build status dependency status

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

MIT Licenced

🔎Explore Package🔎CDN Script

Score

Popularity45/100
Quality92/100
Maintenance100/100

Dependencies