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

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