shichen b6c5ecc67a init 1 ano atrás
..
event b6c5ecc67a init 1 ano atrás
test b6c5ecc67a init 1 ano atrás
.jshintrc b6c5ecc67a init 1 ano atrás
.npmignore b6c5ecc67a init 1 ano atrás
.testem.json b6c5ecc67a init 1 ano atrás
.travis.yml b6c5ecc67a init 1 ano atrás
CONTRIBUTION.md b6c5ecc67a init 1 ano atrás
LICENCE b6c5ecc67a init 1 ano atrás
README.md b6c5ecc67a init 1 ano atrás
docs.mli b6c5ecc67a init 1 ano atrás
document.js b6c5ecc67a init 1 ano atrás
dom-comment.js b6c5ecc67a init 1 ano atrás
dom-element.js b6c5ecc67a init 1 ano atrás
dom-fragment.js b6c5ecc67a init 1 ano atrás
dom-text.js b6c5ecc67a init 1 ano atrás
event.js b6c5ecc67a init 1 ano atrás
index.js b6c5ecc67a init 1 ano atrás
package.json b6c5ecc67a init 1 ano atrás
serialize.js b6c5ecc67a init 1 ano atrás

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