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.
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