
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Cache html content into RAM or Drive
$ npm install html-cache
var htmlCache = require('html-cache');
html.save('/home', '<!DOCTYPE html><html><body><h1>Home</h1></body></html>');
console.log(html.get('/home'));
var express = require('express');
var htmlCache = require('html-cache');
var app = express();
app.set('views', './views');
app.set('view engine', 'pug');
app.get('/', (req, res) => {
if (htmlCache.isCache(req.url)){
res.send(htmlCache.get(req.url));
} else {
res.render('default/index', (err, html) => {
htmlCache.save(req.url, html);
return html;
});
}
});
app.listen(3000);
htmlCache.isCache( key ) [true/false]
htmlCache.save( key, value )
Save cache data
htmlCache.get( key ) [string]
Get cache data
htmlCache.remove( key ) [true/false]
Remove cache by key name
htmlCache.removeOldest()
Remove oldest cache
htmlCache.clear()
Remove all cache
htmlCache.total() [number]
MIT
FAQs
Cache html content into RAM or Drive
We found that html-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.