
Research
/Security News
npm Author Qix Compromised in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@purpose/ttl-cache
Advanced tools
in-memory ttl cache. that's it
$ npm i @purpose/ttl-cache
import c from '@purpose/ttl-cache';
const cache = c();
cache.set('foo', 'bar');
console.log(cache.get('foo'));
cache([opts])
create cache that keep items for opts.ttl || 300000
ms, and does cleanup
every opts.interval || 60000
ms.
cache.get(key)
get item by key, or null if expired or missing
cache.set(key, value)
set item by key
cache.length
get current cache size (might contain expired items too)
MIT
FAQs
Simple ttl cache
The npm package @purpose/ttl-cache receives a total of 0 weekly downloads. As such, @purpose/ttl-cache popularity was classified as not popular.
We found that @purpose/ttl-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.