shichen b6c5ecc67a init 10 months ago
..
event b6c5ecc67a init 10 months ago
test b6c5ecc67a init 10 months ago
.jshintrc b6c5ecc67a init 10 months ago
.npmignore b6c5ecc67a init 10 months ago
.testem.json b6c5ecc67a init 10 months ago
.travis.yml b6c5ecc67a init 10 months ago
CONTRIBUTION.md b6c5ecc67a init 10 months ago
LICENCE b6c5ecc67a init 10 months ago
README.md b6c5ecc67a init 10 months ago
docs.mli b6c5ecc67a init 10 months ago
document.js b6c5ecc67a init 10 months ago
dom-comment.js b6c5ecc67a init 10 months ago
dom-element.js b6c5ecc67a init 10 months ago
dom-fragment.js b6c5ecc67a init 10 months ago
dom-text.js b6c5ecc67a init 10 months ago
event.js b6c5ecc67a init 10 months ago
index.js b6c5ecc67a init 10 months ago
package.json b6c5ecc67a init 10 months ago
serialize.js b6c5ecc67a init 10 months ago

README.md

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