asd/asd-pc/node_modules/min-document
愉快的大福 eb8378e551 init
2024-11-21 11:06:22 +08:00
..
event init 2024-11-21 11:06:22 +08:00
test init 2024-11-21 11:06:22 +08:00
.jshintrc init 2024-11-21 11:06:22 +08:00
.npmignore init 2024-11-21 11:06:22 +08:00
.testem.json init 2024-11-21 11:06:22 +08:00
.travis.yml init 2024-11-21 11:06:22 +08:00
CONTRIBUTION.md init 2024-11-21 11:06:22 +08:00
docs.mli init 2024-11-21 11:06:22 +08:00
document.js init 2024-11-21 11:06:22 +08:00
dom-comment.js init 2024-11-21 11:06:22 +08:00
dom-element.js init 2024-11-21 11:06:22 +08:00
dom-fragment.js init 2024-11-21 11:06:22 +08:00
dom-text.js init 2024-11-21 11:06:22 +08:00
event.js init 2024-11-21 11:06:22 +08:00
index.js init 2024-11-21 11:06:22 +08:00
LICENCE init 2024-11-21 11:06:22 +08:00
package.json init 2024-11-21 11:06:22 +08:00
README.md init 2024-11-21 11:06:22 +08:00
serialize.js init 2024-11-21 11:06:22 +08: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