aozhiwei 0a973d12e3 1
2022-01-27 17:32:21 +08:00
..
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +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