Skip to content

Madvinking/express-auto-async-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

auto register async handlers to express async endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published