/domino-global

Make Node a browser-like environment, by using Domino.

Primary LanguageJavaScriptMIT LicenseMIT

Domino Global

Make Node a browser-like environment, by using Domino.

Install

npm install --save domino domino-global

Usage

Simply importing it will register the following browser-like globals:

import 'domino-global';

console.log ( typeof globalThis.window ); // => 'object'
console.log ( typeof globalThis.document ); // => 'object'
console.log ( typeof globalThis.location ); // => 'object'

License

MIT © Fabio Spampinato