
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
express-async-await
Advanced tools
Use [async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) in your routes without polluting / [wrapping](https://medium.com/@Abazhenov/using-async-await-in-express-with-node-8-b8af872c0016) them.
Use async/await in your routes without polluting / wrapping them.
Pass the app to the library and we'll monkey-patch it for you:
const aa = require('express-async-await')
const app = aa(express())
app.get('/ok', async function(req, res, next) {
res.json({hello: 'world'})
})
app.get('/no', async function(req, res) {
res.notSomethingICanRun({hello: 'world'})
})
app.use((err, req, res, next) => {
console.error(err)
res.status(500).send("Ouch!")
})
Now app.$method(route, fn)
support async functions out of the box!
(have a look at the example app)
npm i express-async-await
npm add express-async-await
FAQs
Use [async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) in your routes without polluting / [wrapping](https://medium.com/@Abazhenov/using-async-await-in-express-with-node-8-b8af872c0016) them.
The npm package express-async-await receives a total of 233 weekly downloads. As such, express-async-await popularity was classified as not popular.
We found that express-async-await 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.