You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Luke Childs 2ba9333dae Add readme 9 years ago
src Wrap module in function 9 years ago
test Add test for return value 9 years ago
.gitignore Add travis and coveralls integration 9 years ago
.travis.yml Add travis and coveralls integration 9 years ago
README.md Add readme 9 years ago
package.json Add travis and coveralls integration 9 years ago

README.md

node-browser-environment Build Status Coverage Status

Simulates a global browser environment using jsdom.

Warning

This module adds global variables that would normally be present in a browser to the current node instance. This allows code that requires a browser environment to run in node, however as it's making global changes it may have adverse affects.

Install

npm install --save node-browser-environment

Usage

require('node-browser-environment')();

or if you're using ES6 modules

import browserEnv from 'node-browser-environment';
browserEnv();

License

MIT © Luke Childs