wallet-core/node_modules/min-document
2017-08-14 05:02:09 +02:00
..
event node_modules 2017-08-14 05:02:09 +02:00
test node_modules 2017-08-14 05:02:09 +02:00
.jshintrc node_modules 2017-08-14 05:02:09 +02:00
.npmignore node_modules 2017-08-14 05:02:09 +02:00
.testem.json node_modules 2017-08-14 05:02:09 +02:00
.travis.yml node_modules 2017-08-14 05:02:09 +02:00
CONTRIBUTION.md node_modules 2017-08-14 05:02:09 +02:00
docs.mli node_modules 2017-08-14 05:02:09 +02:00
document.js node_modules 2017-08-14 05:02:09 +02:00
dom-comment.js node_modules 2017-08-14 05:02:09 +02:00
dom-element.js node_modules 2017-08-14 05:02:09 +02:00
dom-fragment.js node_modules 2017-08-14 05:02:09 +02:00
dom-text.js node_modules 2017-08-14 05:02:09 +02:00
event.js node_modules 2017-08-14 05:02:09 +02:00
index.js node_modules 2017-08-14 05:02:09 +02:00
LICENCE node_modules 2017-08-14 05:02:09 +02:00
package.json node_modules 2017-08-14 05:02:09 +02:00
README.md node_modules 2017-08-14 05:02:09 +02:00
serialize.js node_modules 2017-08-14 05:02:09 +02: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