New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dimosbotsaris/express-async-handler

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dimosbotsaris/express-async-handler

Simple Express.js middleware to handle exceptions and catch error within express routes in asynchronous and pass them to your express error handlers.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-52.94%
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to @dimosbotsaris/express-async-handler 👋

Version Documentation Maintenance Twitter: el_dimious

Simple Express.js middleware to handle exceptions and catch error within express routes in asynchronous and pass them to your express error handlers.

Install

npm install --save @dimosbotsaris/express-async-handler

Usage

import express, { Request, Response, NextFunction, Router } from 'express';
import { asyncWrapper } from '@dimosbotsaris/express-async-handler';

express.get('/', asyncWrapper(async (req: Request, res: Response, next: NextFunction) => {
  const baz = await foo.findAll();
  res.send(baz)
}))

Run tests

npm run test

Author

👤 Dimos Botsaris

Support Me

ko-fi

Show your support

Give a ⭐️ if this project helped you!

Keywords

FAQs

Package last updated on 17 Feb 2022

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc