Search results

17 packages found

ECMAScript spec-compliant polyfill/shim for `globalThis`

published version 1.0.4, a year ago958 dependents licensed under $MIT
137,037,587

Global namespace without polluting the global scope

published version 1.0.0, 4 years ago8 dependents licensed under $ISC
3,871,270

A globalThis polyfill.

published version 0.0.2, 6 years ago16 dependents licensed under $MIT
57,881

Polyfill foe globalThis

published version 1.0.0, 3 years ago0 dependents licensed under $MIT
6,369

ESM compatible randomUUID polyfill

published version 1.0.2, a year ago0 dependents licensed under $MIT
2,849

Don't let TC39 use globalThis

published version 1.0.0, 6 years ago0 dependents licensed under $MIT
669

Provides access to `globalThis`, ensuring cross-platform compatibility, including browsers (`window`), Node.js (`global`), and Web Workers (`self`).

published version 5.5.3, a month ago5 dependents licensed under $AGPL-3.0-only
564

🌍 Returns the global object regardless of the environment.

published version 2.1.0, 6 months ago2 dependents licensed under $MIT
177

Ponyfill for globalThis

published version 4.0.0, 2 years ago8 dependents licensed under $Unlicense
97

The global variable integration for Astro 🌐

published version 0.0.14, 2 months ago0 dependents licensed under $MIT
32

Get globalThis.

published version 1.1.2, 6 years ago0 dependents licensed under $MIT
19

conf-global 提供了表示全局对象的 globalThis 兼容处理,在没有全局变量 globalThis 的情况下,会自动创建该全局变量

published version 1.0.0, 5 years ago0 dependents licensed under $ISC
14

Polyfills the globalThis meta-object reference for Typescript/Javascript

published version 0.0.1, 6 years ago0 dependents licensed under $MIT
16

Global property globalThis polyfill

published version 0.1.0, a year ago0 dependents licensed under $MIT
10

just use self. adds self to environments that don't already have it.

published version 1.0.1, 6 years ago0 dependents licensed under $MIT
9

Get the correct global in browser, node & worker

published version 1.0.1, 5 years ago0 dependents licensed under $MIT
10

get, set global values in any js env

published version 2.0.1, 2 years ago0 dependents licensed under $MIT
10