
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
express-async-error
Advanced tools
Expressjs handles error on try/catch basis, which is very helpful, but doesn't take care of asynchronous errors (errors in callbacks). This middleware handles those with usage of domains.
npm install express-async-error
All you need to do is add handler like this:
var express = require('express');
var errorHandler = require('express-async-error').Handler
var app = new express()
app.use(errorHandler([options]))
...
app.listen(...)
options:
domainPropertyName: name of property to assign created domain (default: _domain)See tests for complete usage example.
FAQs
expressjs asynchronous error handler
The npm package express-async-error receives a total of 158 weekly downloads. As such, express-async-error popularity was classified as not popular.
We found that express-async-error 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.