globalthis
ECMAScript spec-compliant polyfill/shim for `globalThis`
ECMAScript spec-compliant polyfill/shim for `globalThis`
Sometimes you have to do horrible things, like use the global object to share a singleton. Abstract that away, with this!
ECMAScript spec-compliant polyfill/shim for `global`
An abstraction for passing around global objects and singletons with multi-paradigm resolution. Minimal, built using esnext, with no imports or shims. Inspired by global-cache.
just use self. adds self to environments that don't already have it.
An abstraction for passing around global objects and singletons with multi-paradigm resolution. Minimal, built using esnext, with no imports or shims. Inspired by global-cache.
A lightweight utility to create global singletons (on browser and node)