
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@reignmodule/express-utils
Advanced tools
Common express services utilities
listeningListener()listeningListener(this: ServerHttp): void
Use it to show a listener server.
Sample:
import { listeningListener } from '@reignmodule/express-utils/listening-listener';
createServerHttp(app).listen(3000, listeningListener);
// Server ready on http://localhost:3000
createServerHttps(app).listen(3001, listeningListener);
// Server ready on https://localhost:3001
createServerHttp2(app).listen(3002, listeningListener);
// Server ready on //localhost:3002

requestHandlerAsyncrequestHandlerAsync(requestHandler: (req: Request, res: Response, next: NextFunction) => Promise<any>, thisArg?: any) => RequestHandler
Sample
import { requestHandlerAsync } from '@reignmodule/express-utils/handle-async';
const app = express();
app.get('/', requestHandlerAsync(async (req, res) => {
res.send('ok');
}));
errorRequestHandlerAsyncerrorRequestHandlerAsync(errorRequestHandler: (error: any, req: Request, res: Response, next: NextFunction) => Promise<any>, thisArg?: any) => ErrorRequestHandler
Sample
import { errorRequestHandlerAsync } from '@reignmodule/express-utils/handle-async';
const app = express();
app.get('/', errorRequestHandlerAsync(async (err, req, res) => {
res.status(500).send(err.message);
}));
##Â requestParamHandlerAsync
requestParamHandlerAsync(requestParamHandler: (req: Request, res: Response, next: NextFunction, value: any, name: string) => Promise<any>, thisArg?: any) => RequestParamHandler
Sample
import { requestParamHandlerAsync } from '@reignmodule/express-utils/handle-async';
const app = express();
app.param('user', requestParamHandlerAsync(async (req, res, next, id, param) => {
const user = await User.find(id);
req.user = user;
return next();
}));
FAQs
Common services express utilities
We found that @reignmodule/express-utils 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.