happy-dom-global
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Happy DOM Global

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

Install

npm install --save happy-dom-global

Usage

Simply importing it will register browser-like globals:

import 'happy-dom-global';

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

License

MIT © Fabio Spampinato

/happy-dom-global/

    Package Sidebar

    Install

    npm i happy-dom-global

    Weekly Downloads

    2

    Version

    1.0.1

    License

    none

    Unpacked Size

    3.39 kB

    Total Files

    9

    Last publish

    Collaborators

    • fabiospampinato