python-archieve-projects/WechatBot/node_modules/min-document
Lee2vv 0b82373111 init 2024-05-05 13:46:50 +08:00
..
event init 2024-05-05 13:46:50 +08:00
test init 2024-05-05 13:46:50 +08:00
.jshintrc Backup 2023-08-18 21:52:54 +08:00
.npmignore Backup 2023-08-18 21:52:54 +08:00
.testem.json Backup 2023-08-18 21:52:54 +08:00
.travis.yml Backup 2023-08-18 21:52:54 +08:00
CONTRIBUTION.md Backup 2023-08-18 21:52:54 +08:00
LICENCE Backup 2023-08-18 21:52:54 +08:00
README.md Backup 2023-08-18 21:52:54 +08:00
docs.mli Backup 2023-08-18 21:52:54 +08:00
document.js init 2024-05-05 13:46:50 +08:00
dom-comment.js init 2024-05-05 13:46:50 +08:00
dom-element.js init 2024-05-05 13:46:50 +08:00
dom-fragment.js init 2024-05-05 13:46:50 +08:00
dom-text.js init 2024-05-05 13:46:50 +08:00
event.js init 2024-05-05 13:46:50 +08:00
index.js init 2024-05-05 13:46:50 +08:00
package.json Backup 2023-08-18 21:52:54 +08:00
serialize.js init 2024-05-05 13:46:50 +08: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