
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
express-router-wrapper
Advanced tools
Express Router Wrapper for promise or async-await based middlewares or functions.
yarn add express express-router-wrapper
npm i --save express express-router-wrapper
const express = require('express');
const app = express();
const PromiseRouter = require('express-router-wrapper');
const router = new PromiseRouter();
router.get('/', (req, res) => {
res.send('Actual get');
});
const asyncMiddleware = async (req, res) => {
req.message = 'Async middleware';
};
router.get('/async', asyncMiddleware, (req, res) => {
res.json(req.message);
});
router.get('/promise', (req, res) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve('Promise function');
}, 500);
});
});
app
.use('/', router.getOriginal())
.listen(5000);
FAQs
Express Router with Sync, Promise and Async-Await Support
We found that express-router-wrapper 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.