Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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!


```