
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.
An incredibly minimal REST api server.
$ npm install --save revres
var revres = require('revres');
var servlet = revres([port][, callback]);
servlet.get(path, callback);
The callback is called when a request to the given path happens.
Callback params:
(Also works with post)
servlet.getSync(path, callback)
Callback params:
When it is time to send a response, just return a string or json object and it will be sent to the client
(Also works with post)
// Create a servlet on port 5000
var servlet = revres(5000);
// Send response 'world' when /hello is requested
servlet.get('/hello', funciton (req, send) {
send('world');
});
// Count to a number synchronously
servlet.getSync('/count-\\d{1,16}', function (req) {
var count = parseInt(req.path.split('-')[1]);
for (var i = 0; i < count; i++) {
console.log(i);
if (i > 20000) return 'early';
}
return 'done counting';
});
FAQs
Incredibly minimal REST api server
The npm package revres receives a total of 3 weekly downloads. As such, revres popularity was classified as not popular.
We found that revres 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.