express-auto-async-handler

0.0.2 • Public • Published

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);

Package Sidebar

Install

npm i express-auto-async-handler

Weekly Downloads

524

Version

0.0.2

License

MIT

Unpacked Size

1.63 kB

Total Files

3

Last publish

Collaborators

  • mad_vinking