thedesk/app/node_modules/min-document
2019-09-12 23:38:13 +09:00
..
event Add: node_modules 2019-09-12 23:38:13 +09:00
test Add: node_modules 2019-09-12 23:38:13 +09:00
.jshintrc Add: node_modules 2019-09-12 23:38:13 +09:00
.npmignore Add: node_modules 2019-09-12 23:38:13 +09:00
.testem.json Add: node_modules 2019-09-12 23:38:13 +09:00
.travis.yml Add: node_modules 2019-09-12 23:38:13 +09:00
CONTRIBUTION.md Add: node_modules 2019-09-12 23:38:13 +09:00
docs.mli Add: node_modules 2019-09-12 23:38:13 +09:00
document.js Add: node_modules 2019-09-12 23:38:13 +09:00
dom-comment.js Add: node_modules 2019-09-12 23:38:13 +09:00
dom-element.js Add: node_modules 2019-09-12 23:38:13 +09:00
dom-fragment.js Add: node_modules 2019-09-12 23:38:13 +09:00
dom-text.js Add: node_modules 2019-09-12 23:38:13 +09:00
event.js Add: node_modules 2019-09-12 23:38:13 +09:00
index.js Add: node_modules 2019-09-12 23:38:13 +09:00
LICENCE Add: node_modules 2019-09-12 23:38:13 +09:00
package.json Add: node_modules 2019-09-12 23:38:13 +09:00
README.md Add: node_modules 2019-09-12 23:38:13 +09:00
serialize.js Add: node_modules 2019-09-12 23:38:13 +09:00

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