https://github.com/dna-dom/node-jsdom-starter
Sample dna-dom application running on node with jsdom
https://github.com/dna-dom/node-jsdom-starter
example javascript jsdom nodejs npm starter
Last synced: about 2 months ago
JSON representation
Sample dna-dom application running on node with jsdom
- Host: GitHub
- URL: https://github.com/dna-dom/node-jsdom-starter
- Owner: dna-dom
- License: mit
- Created: 2017-03-02T07:50:55.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2026-02-25T04:55:08.000Z (4 months ago)
- Last Synced: 2026-02-25T10:18:17.727Z (4 months ago)
- Topics: example, javascript, jsdom, nodejs, npm, starter
- Language: JavaScript
- Homepage: https://dna-dom.org/docs/#setup-npm
- Size: 878 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# node-jsdom-starter

_Sample dna-dom application running on node with jsdom_
[](https://dna-dom.org/license)
[](https://github.com/dna-dom/node-jsdom-starter/actions/workflows/run-spec-on-push.yaml)
[dna-dom.org](https://dna-dom.org), a UI templating library, can be run headless (no browser) on
Node.js with the DOM provided by jsdom.
### Setup
Enter the terminal commands:
```shell
$ cd node-jsdom-starter
$ npm install
$ node app
```
### Import and Initialize
```javascript
// Imports
import { JSDOM } from 'jsdom';
import { dna } from 'dna-dom';
// Setup
const html = `
Tasks
~~title~~
`;
const dom = new JSDOM(html);
dna.initGlobal(dom.window);
```
### Output

---
[MIT License](LICENSE.txt)