Skip to content

BigBobLittle/skipTryCatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

@bigboblittle/skipTryCatch npm-Version

An npm package to skip chaining sequences of try-catch when dealing with async route in express applications

Getting Started

The following instructions will get you a copy of this package

Prerequisite

Make sure you have nodejs and npm installed on your machine

Installing

use command npm i @bigboblittle/skipTryCatch

Usage

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
}); 

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Version

current v3.1.3

Author

Big Bob Little

About

a utility module to skip try-catch in async/await express routes

Resources

Stars

Watchers

Forks

Releases

No releases published