1
0
Fork 0
forked from Simnation/Main
Main/resources/[creator]/blips_creator/node_modules/min-document
2025-06-07 08:51:21 +02:00
..
event first Commit 2025-06-07 08:51:21 +02:00
test first Commit 2025-06-07 08:51:21 +02:00
.jshintrc first Commit 2025-06-07 08:51:21 +02:00
.npmignore first Commit 2025-06-07 08:51:21 +02:00
.testem.json first Commit 2025-06-07 08:51:21 +02:00
.travis.yml first Commit 2025-06-07 08:51:21 +02:00
CONTRIBUTION.md first Commit 2025-06-07 08:51:21 +02:00
docs.mli first Commit 2025-06-07 08:51:21 +02:00
document.js first Commit 2025-06-07 08:51:21 +02:00
dom-comment.js first Commit 2025-06-07 08:51:21 +02:00
dom-element.js first Commit 2025-06-07 08:51:21 +02:00
dom-fragment.js first Commit 2025-06-07 08:51:21 +02:00
dom-text.js first Commit 2025-06-07 08:51:21 +02:00
event.js first Commit 2025-06-07 08:51:21 +02:00
index.js first Commit 2025-06-07 08:51:21 +02:00
LICENCE first Commit 2025-06-07 08:51:21 +02:00
package.json first Commit 2025-06-07 08:51:21 +02:00
README.md first Commit 2025-06-07 08:51:21 +02:00
serialize.js first Commit 2025-06-07 08:51:21 +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