{"library":"global-cache","type":"library","category":null,"description":"A tiny utility (v1.2.1, stable) that attaches a cache to the global object (window/global/self) using the most discreet method available: Symbols, a non-identifier string key, and non-enumerable property descriptors. Unlike typical global singletons, it minimizes discoverability and collides with other code. Keys must be strings or symbols. No dependencies, ESM and CJS support. Ideal for internal module state sharing across environments.","language":"javascript","status":"active","version":"1.2.1","tags":["javascript","global","window","self","cache","global object"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install global-cache","imports":["import cache from 'global-cache'","cache.set(key, value)","const val = cache.get(key)","if (cache.has(key))","cache.delete(key)"]},{"cmd":"yarn add global-cache","imports":[]},{"cmd":"pnpm add global-cache","imports":[]}],"homepage":"https://github.com/ljharb/global-cache#readme","github":"git://github.com/ljharb/global-cache","docs":null,"changelog":null,"pypi":null,"npm":"global-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}