nodejs-dom

0.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    7
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i nodejs-dom

Weekly Downloads

7

Version

0.0.2

License

MIT

Last publish

Collaborators

  • leogiese