
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tabby-cache
Advanced tools
The smallest cache library that actually works. \ `37` lines of code, `0` dependencies
The smallest cache library that actually works.
37 lines of code, 0 dependencies
Current stable version: 1.0
$ npm install tabby-cache
const TabbyCache = require('tabby-cache');
const cache = new TabbyCache(60); // in seconds
const obj = 'object'; // string, number, boolean, object, array
cache.set(obj, 'cache-key'); // set the cache
// cache that exists
cache.get('cache-key'); // return obj
// cache that doesn't exists
cache.get('cache'); // return undefined
Example:
const TabbyCache = require('tabby-cache');
const cache = new TabbyCache(300);
const fetch = require('node-fetch');
async function TabbyApi() {
const getCache = cache.get('tabby-api');
if (getCache == undefined) {
const { users, servers } = await fetch('https://api.tabbybot.eu/').then(res => res.json());
cache.set(users, 'tabby-api');
} else {
cache.get('tabby-api');
};
};
FAQs
The smallest cache library that actually works. \ `37` lines of code, `0` dependencies
We found that tabby-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.