huanggang 03a863fb53 add node_modules 7 년 전
..
event 03a863fb53 add node_modules 7 년 전
test 03a863fb53 add node_modules 7 년 전
.jshintrc 03a863fb53 add node_modules 7 년 전
.npmignore 03a863fb53 add node_modules 7 년 전
.testem.json 03a863fb53 add node_modules 7 년 전
.travis.yml 03a863fb53 add node_modules 7 년 전
CONTRIBUTION.md 03a863fb53 add node_modules 7 년 전
LICENCE 03a863fb53 add node_modules 7 년 전
README.md 03a863fb53 add node_modules 7 년 전
docs.mli 03a863fb53 add node_modules 7 년 전
document.js 03a863fb53 add node_modules 7 년 전
dom-comment.js 03a863fb53 add node_modules 7 년 전
dom-element.js 03a863fb53 add node_modules 7 년 전
dom-fragment.js 03a863fb53 add node_modules 7 년 전
dom-text.js 03a863fb53 add node_modules 7 년 전
event.js 03a863fb53 add node_modules 7 년 전
index.js 03a863fb53 add node_modules 7 년 전
package.json 03a863fb53 add node_modules 7 년 전
serialize.js 03a863fb53 add node_modules 7 년 전

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