Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
async-catcher
Advanced tools
async-catcher is an error catching wrapper for ES7 async/await functions in express.
var catcher = require('async-catcher')
app.get('/my/url', catcher(async function(req, res) {
throw Error('Unhandled error');
}));
In this scenario, the default handler will call Express's next()
function and pass in the unhandled error.
You may also supply a handler:
var catcher = require('async-catcher')
app.get('/my/url', catcher(async function(req, res) {
throw Error('Unhandled error');
}, function(err, req, res){
res.status(400).send('An error occurred');
}));
This module does not inherently add async support, but plays well with the transpiled implementations from Babel and Traceur.
FAQs
An error catching wrapper for ES7 async/await functions in express
The npm package async-catcher receives a total of 6 weekly downloads. As such, async-catcher popularity was classified as not popular.
We found that async-catcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.