You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
396316021 e3b960fcaa init 8 months ago
..
event init 8 months ago
test init 8 months ago
.jshintrc init 8 months ago
.npmignore init 8 months ago
.testem.json init 8 months ago
.travis.yml init 8 months ago
CONTRIBUTION.md init 8 months ago
LICENCE init 8 months ago
README.md init 8 months ago
docs.mli init 8 months ago
document.js init 8 months ago
dom-comment.js init 8 months ago
dom-element.js init 8 months ago
dom-fragment.js init 8 months ago
dom-text.js init 8 months ago
event.js init 8 months ago
index.js init 8 months ago
package.json init 8 months ago
serialize.js init 8 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