ljharb

ljharb/global-cache

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

JavaScript
20
4
MIT License

global-cache is a utility for managing a shared cache on the global object, designed to abstract away the use of the global object for singleton storage. It uses symbols or non-enumerable keys to minimize discoverability and provides methods for setting, getting, and deleting cached values. This project is intended for developers who need to share state across different parts of their application in a controlled and minimally intrusive way.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ljharb/global-cache

Account's avatar
Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.
Account's avatar
Determine if a value is an ES6 Symbol or not.
Account's avatar
My shareable eslint config
Account's avatar
code coverage command con coverify
Account's avatar
Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale
Account's avatar
JavaScript Code Style
Account's avatar
The Node Security (nodesecurity.io) command line interface
Account's avatar
Command line search and replace utility
Account's avatar
A deep deletion module for node (like `rm -rf`)
Account's avatar
The semantic version parser used by npm.
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on this repository

Top contributors

ljharb's profile
ljharb
122 contributions
renovate-bot's profile
renovate-bot
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet