Name Last Update
..
event Loading commit data...
test Loading commit data...
.jshintrc Loading commit data...
.npmignore Loading commit data...
.testem.json Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTION.md Loading commit data...
LICENCE Loading commit data...
README.md Loading commit data...
docs.mli Loading commit data...
document.js Loading commit data...
dom-comment.js Loading commit data...
dom-element.js Loading commit data...
dom-fragment.js Loading commit data...
dom-text.js Loading commit data...
event.js Loading commit data...
index.js Loading commit data...
package.json Loading commit data...
serialize.js Loading commit data...

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