nd

nodejs-dom

enable node's dom , for test or other.

Showing:

Popularity

Downloads/wk

6

Maintenance

No Maintenance Data Available

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

nodejs-dom

enable node's dom , for test or other.

install

npm install nodejs-dom --save-dev

API

require('nodejs-dom')(makeup,isGlobal)

use

var getWindow = require('nodejs-dom');
var window = getWindow();
window.document
window.navigator
window.document.querySelector('#test');

// or global.window
getWindow(null,true);

window.document
document.querySelector
navigator

LICENSE

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100