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

0.0.3 • Public • Published

dominimal

A minimal subset of jsdom, focusing on DOM (and omitting wider Web APIs).

Installation

npm install dominimal

Usage

// dominimal exports all the same modules as jsdom.
const dominimal = require('dominimal');
const { JSDOM } = dominimal;

const jsdom = new JSDOM('', { pretendToBeVisual: true });
const { document } = jsdom.window;
const body = document.createElement('body');
document.documentElement.appendChild(body);

console.log(jsdom.serialize());

Readme

Keywords

none

Package Sidebar

Install

npm i dominimal

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.47 MB

Total Files

9

Last publish

Collaborators

  • nativescript-bot