thedesk/app/node_modules/min-document
2018-05-26 21:48:13 +09:00
..
event TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
test TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
.jshintrc TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
.npmignore TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
.testem.json TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
.travis.yml TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
CONTRIBUTION.md TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
docs.mli TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
document.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
dom-comment.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
dom-element.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
dom-fragment.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
dom-text.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
event.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
index.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
LICENCE TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
package.json TheDesk Mio (ver.5) 2018-05-26 21:48:13 +09:00
README.md TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09:00
serialize.js TheDesk Riina (ver.3) 2018-02-19 02:41:25 +09: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