min-document
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/min-document package

2.19.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i min-document

Weekly Downloads

4,867,104

Version

2.19.0

License

none

Last publish

Collaborators

  • mattesch
  • raynos