Skip to content
fake DOM for RE:DOM
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Made semistandard happy and rebuilt dist Mar 14, 2019
lib Made semistandard happy and rebuilt dist Mar 14, 2019
test
.gitignore
README.md Update Readme Aug 11, 2019
package-lock.json 2.2.0 Mar 19, 2019
package.json
rollup.config.js
watch.js standard --> semistandard Nov 16, 2016

README.md

js-semistandard-style

NO:DOM

fake DOM for RE:DOM

installing

npm install nodom

usage

const { Document, SVGElement } = require('nodom');
global.document = new Document();
global.SVGElement = SVGElement;
const { el, mount } = require('redom');

mount(document.body, el('h1', 'Hello world!'));

console.log(document.body.outerHTML); // <body><h1>Hello world!</h1></body>
You can’t perform that action at this time.