
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.
express-once
Advanced tools
Create express middleware that just runs once.
Ever wish you could make a function that would only ever be called once per request? Well now you can with once! Simple wrap your function in once and add as many times as you like to your app with the satisfcation that it will only ever be invoked... once.
var express = require('express'),
once = require('express-once');
var app = express();
// Ensure this function is only called once
var hello = once(function middleware(req, res, next) {
console.log('Hello world.');
});
// Try to call it many times... but it won't!
app.use(hello, hello, hello);
FAQs
Create express middleware that just runs once.
The npm package express-once receives a total of 9 weekly downloads. As such, express-once popularity was classified as not popular.
We found that express-once 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
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.