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

1.0.0 • Public • Published

LinkeDOM Global

Make Node a browser-like environemnt, by using LinkeDOM.

Install

npm install --save linkedom-global

Usage

Simply importing it will register browser-like globals:

import 'linkedom-global'; // Register globals using 'linkedom'
// import 'linkedom-global/cached'; // Register globals using 'linkedom/cached'
// import 'linkedom-global/worker'; // Register globals using 'linkedom/worker'

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

License

MIT © Fabio Spampinato

/linkedom-global/

    Package Sidebar

    Install

    npm i linkedom-global

    Weekly Downloads

    12

    Version

    1.0.0

    License

    none

    Unpacked Size

    9.05 kB

    Total Files

    21

    Last publish

    Collaborators

    • fabiospampinato