Search results

6 packages found

ECMAScript spec-compliant polyfill/shim for `globalThis`

published version 1.0.4, 7 months ago916 dependents licensed under $MIT
128,926,512

Sometimes you have to do horrible things, like use the global object to share a singleton. Abstract that away, with this!

published version 1.2.1, 7 years ago8 dependents licensed under $MIT
1,703,423

A lightweight utility to create global singletons (on browser and node)

published version 0.1.2, 10 months ago1 dependents licensed under $MIT
14,664

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.

published version 0.4.0, 4 years ago1 dependents licensed under $MIT
12

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.

published version 0.4.2, 4 years ago1 dependents licensed under $MIT
6

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
1