1.0.1 • Published 4 months ago
domino-global v1.0.1
Domino Global
Make Node a browser-like environment, by using Domino.
Install
npm install domino domino-global
Usage
Simply importing it will register the following browser-like globals:
import 'domino-global';
// Let's check that some browser-like globals are available
console.log ( typeof globalThis.window ); // => 'object'
console.log ( typeof globalThis.document ); // => 'object'
console.log ( typeof globalThis.location ); // => 'object'
License
MIT © Fabio Spampinato