# @art-suite/global

> Ever try to run the same code on NodeJS and in the browser and find it fails in one or the other because the global namespace variable isn't standard? This tiny library fixes that.

Latest version **1.0.12** (published 2025-11-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @art-suite/global
pnpm add @art-suite/global
yarn add @art-suite/global
bun add @art-suite/global
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2025-11-07 |
| First published | 2020-06-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Shane Brinkman-Davis Delamore |
| Maintainers | shanebdavis |

## Links

- npm: https://www.npmjs.com/package/@art-suite/global
- Repository: https://github.com/art-suite/art-suite-foundations
- Issues: https://github.com/art-suite/art-suite-foundations/issues
- npm.io page: https://npm.io/package/@art-suite/global

## Recent versions

- 1.0.12 (latest) — 2025-11-07
- 1.0.11 — 2021-07-28
- 1.0.10 — 2021-03-26
- 1.0.9 — 2020-12-12
- 1.0.8 — 2020-10-30
- 1.0.7 — 2020-10-30
- 1.0.6 — 2020-08-23
- 1.0.5 — 2020-08-23
- 1.0.3 — 2020-06-29
- 1.0.2 — 2020-06-29
- 1.0.1 — 2020-06-29
- 1.0.0 — 2020-06-07

## README

# @art-suite/global

Ever try to run the same code on NodeJS and in the browser and find it fails in one or the other because the global namespace variable isn't standard? This tiny library fixes that.

After you `require("@art-suite/global")` you'll find the `global` variable is available everywhere as a consistent way to access the global namespace.

Ensures:
- `global === require('@art-suite/global')`
- `global.global === global`
- on browser: `window === global`
- on node: `global === global` (global is already set ;) )

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