Releases: pacifiquem/node-async-handler
Releases · pacifiquem/node-async-handler
v0.0.1
Introducing node-async-handler v1.0.0 by MURANGWA Pacifique.
- AsyncHandler middleware for easy error handling in ExpressJS.
- Supports both ESM and CommonJS.
- Simplifies code with automatic error forwarding.
// ESM
import pkg from 'node-async-handler';
const { asyncHandler } = pkg;
// CommonJS
const { asyncHandler } = require('node-async-handler');
express.get('/', asyncHandler(async (req, res, next) => {
const result = await someAsyncFunction();
res.json(result);
}));
🚀 Released under the MIT License.
Explore node-async-handler and enjoy streamlined async error handling in your Express projects!