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
133 Stars 10 Forks ISC License 116 Commits 11 Opened issues

Description

fake DOM for RE:DOM

Services available

!
?

Need anything else?

Contributors list

# 126,521
Node.js
web-dev...
html5
CSS
30 commits
# 14,097
html5
Svelte
Shell
actions...
28 commits
# 21,112
springf...
excepti...
Django
bottlep...
27 commits
# 26,425
JavaScr...
Node.js
Shell
Go
2 commits
# 91,982
TypeScr...
Node.js
microfr...
Java
1 commit
# 380,996
JavaScr...
Node.js
React
nextjs
1 commit
# 191,316
C++
C
Arduino
infrare...
1 commit

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.