GT2/Ejectable/node_modules/min-document
Ren Juan 06c1a5835d set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
..
event set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
test set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
.jshintrc set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
.npmignore set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
.testem.json set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
.travis.yml set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
CONTRIBUTION.md set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
LICENCE set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
README.md set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
docs.mli set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
document.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
dom-comment.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
dom-element.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
dom-fragment.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
dom-text.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
event.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
index.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
package.json set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
serialize.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00

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