by redom

redom / nodom

fake DOM for RE:DOM

130 Stars 11 Forks Last release: over 1 year ago (v2.2.0) ISC License 116 Commits 8 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Build status js-semistandard-style


fake DOM for RE:DOM


npm install nodom


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); //

Hello world!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.