# linkedom-global

> Make Node a browser-like environment, by using LinkeDOM.

Latest version **1.0.1** (published 2025-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install linkedom-global
pnpm add linkedom-global
yarn add linkedom-global
bun add linkedom-global
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2025-03-09 |
| First published | 2023-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | fabiospampinato |
| Keywords | linkedom, dom, browser, environment |

## Links

- npm: https://www.npmjs.com/package/linkedom-global
- Repository: https://github.com/fabiospampinato/linkedom-global
- Homepage: https://github.com/fabiospampinato/linkedom-global#readme
- Issues: https://github.com/fabiospampinato/linkedom-global/issues
- npm.io page: https://npm.io/package/linkedom-global

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2025-03-09
- 1.0.0 — 2023-03-09

## README

# LinkeDOM Global

Make Node a browser-like environment, by using [LinkeDOM](https://github.com/WebReflection/linkedom).

## Install

```sh
npm install linkedom-global
```

## Usage

Simply importing it will register browser-like globals:

```ts
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'

// 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.navigator ); // => 'object'
```

## License

MIT © Fabio Spampinato

---
_Source: https://npm.io/package/linkedom-global · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
