Skip to content

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

License

Notifications You must be signed in to change notification settings

fabiospampinato/domino-global

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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