provider/node_modules/min-document
Nik Dement'ev b2743b6469
fix: update lint
2020-11-06 14:38:38 +03:00
..
event fix: update lint 2020-11-06 14:38:38 +03:00
test fix: update lint 2020-11-06 14:38:38 +03:00
.jshintrc fix: update lint 2020-11-06 14:38:38 +03:00
.npmignore fix: update lint 2020-11-06 14:38:38 +03:00
.testem.json fix: update lint 2020-11-06 14:38:38 +03:00
.travis.yml fix: update lint 2020-11-06 14:38:38 +03:00
CONTRIBUTION.md fix: update lint 2020-11-06 14:38:38 +03:00
LICENCE fix: update lint 2020-11-06 14:38:38 +03:00
README.md fix: update lint 2020-11-06 14:38:38 +03:00
docs.mli fix: update lint 2020-11-06 14:38:38 +03:00
document.js fix: update lint 2020-11-06 14:38:38 +03:00
dom-comment.js fix: update lint 2020-11-06 14:38:38 +03:00
dom-element.js fix: update lint 2020-11-06 14:38:38 +03:00
dom-fragment.js fix: update lint 2020-11-06 14:38:38 +03:00
dom-text.js fix: update lint 2020-11-06 14:38:38 +03:00
event.js fix: update lint 2020-11-06 14:38:38 +03:00
index.js fix: update lint 2020-11-06 14:38:38 +03:00
package.json fix: update lint 2020-11-06 14:38:38 +03:00
serialize.js fix: update lint 2020-11-06 14:38:38 +03: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