nodom
TypeScript icon, indicating that this package has built-in type declarations

2.4.0 • Public • Published

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); // <body><h1>Hello world!</h1></body>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.4.0
    770
    • latest

Version History

Package Sidebar

Install

npm i nodom

Weekly Downloads

773

Version

2.4.0

License

ISC

Unpacked Size

81.5 kB

Total Files

45

Last publish

Collaborators

  • pakastin