An npm package to skip chaining sequences of try-catch when dealing with async route in express applications
The following instructions will get you a copy of this package
Make sure you have nodejs and npm installed on your machine
use command npm i @bigboblittle/skipTryCatch
Require the package
const skipTryCatch = require('@bigboblittle/skiptrycatch').skipTryCatch;
Example use case wrap the module around your express routes
exports.bigboblittle = skipTryCatch(async(req,res,next) => {
//no need to call try catch here, the package will take care of it
});
This project is licensed under the MIT License - see the LICENSE.md file for details
current v3.1.3
Big Bob Little