Installations
npm install express-async-handler
Releases
Unable to fetch releases
Developer
Abazhenov
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
15.6.0
NPM Version
7.4.0
Statistics
573 Stars
52 Commits
40 Forks
7 Watching
3 Branches
11 Contributors
Updated on 24 Nov 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
36,286,860
Last day
-5.3%
30,577
Compared to previous day
Last week
2.2%
178,032
Compared to previous week
Last month
12.7%
737,149
Compared to previous month
Last year
-28.9%
8,507,293
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
5
Simple middleware for handling exceptions inside of async express routes and passing them to your express error handlers.
Installation:
npm install --save express-async-handler
or
yarn add express-async-handler
Usage:
1const asyncHandler = require('express-async-handler') 2 3express.get('/', asyncHandler(async (req, res, next) => { 4 const bar = await foo.findAll(); 5 res.send(bar) 6}))
Without express-async-handler
1express.get('/',(req, res, next) => { 2 foo.findAll() 3 .then ( bar => { 4 res.send(bar) 5 } ) 6 .catch(next); // error passed on to the error handling route 7})
Import in Typescript:
1import asyncHandler from "express-async-handler"
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 10/16 approved changesets -- score normalized to 6
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 25 are checked with a SAST tool
Score
2.7
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More