Install
globalthis
ECMAScript spec-compliant polyfill/shim for `globalThis`
1.0.4Latest, 30 Apr 2024
568MDownloads, last month
0Advisories on the latest
0Advisories, all versions
MITLicence
110Stars
3.8/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
In the news
- TypeScript `globalThis` Typing in 2026: Safely Adding Properties to the Global Scope Without `any` dev.to, 5 Nov 2026
- Caching in Node.js with TypeScript using globalThis and declare global dev.to, 26 Sep 2025
- Runtime.callFunctionOn threw exception: Error: LavaMoat - property "Proxy" of globalThis is inaccessible under scuttling mode stackoverflow.com, 24 Aug 2024
- TypeScript Error TS7017: Implicit any type for custom globalThis property in Pixi.js application stackoverflow.com, 14 Aug 2024
- Property 'ethereum' does not exist on type 'Window & typeof globalThis' in Next Typescript project ethereum.stackexchange.com, 24 Jun 2024
On Hacker News
- A horrifying globalThis polyfill in JavaScript 154 points, 73 comments, 12 May 2019
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.