1.0.2 • Published 4 months ago

happy-dom-global v1.0.2

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

Happy DOM Global

Make Node a browser-like environment, by using Happy DOM.

Install

npm install happy-dom-global

Usage

Simply importing it will register browser-like globals:

import 'happy-dom-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.2

4 months ago

1.0.1

2 years ago

1.0.0

2 years ago