1.0.1 • Published 4 months ago

domino-global v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

1.0.1

4 months ago

1.0.0

2 years ago