Need help with nodom?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

redom
135 Stars 10 Forks ISC License 116 Commits 15 Opened issues

Description

fake DOM for RE:DOM

Services available

!
?

Need anything else?

Contributors list

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

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.