Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redom/nodom
fake DOM for RE:DOM
https://github.com/redom/nodom
dom fake javascript nodejs redom
Last synced: 8 days ago
JSON representation
fake DOM for RE:DOM
- Host: GitHub
- URL: https://github.com/redom/nodom
- Owner: redom
- License: isc
- Created: 2016-09-29T14:26:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T11:49:55.000Z (almost 3 years ago)
- Last Synced: 2024-05-01T23:22:03.352Z (7 months ago)
- Topics: dom, fake, javascript, nodejs, redom
- Language: JavaScript
- Size: 521 KB
- Stars: 148
- Watchers: 7
- Forks: 13
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build status](https://img.shields.io/travis/redom/nodom/master?style=flat-square)](https://travis-ci.org/redom/nodom?branch=master)
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard)
# NO:DOM
fake DOM for [RE:DOM](https://redom.js.org)## installing
```
npm install nodom
```## usage
```js
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!
```