You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

express-auto-async-handler

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-auto-async-handler

auto register async handlers to express routers


Version published
Maintainers
1
Created

Readme

Source

express-auto-async-handler

npm

automatically wrap express async function with async handlers.

Example

  const express = require('express');
  const app = express();
  const warp = require('express-auto-async-handler');

  async function a() {};

  app.get('/path1', a);
  app.all('/path4', a);
  app.use(a);
  router1.get('/path5', a);

  warp(app);
  app.listen(PORT) // or just warp(app).listen(PORT);

Keywords

FAQs

Package last updated on 24 Apr 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc