Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

trycatchify

sahilrajput0311ISC0.0.3

Personal abstraction for fast debugging and DX.

readme

Trycathchify

Personal abstraction for fast debugging and DX.

const {trycatchify} = require("trycatchify");

// :: TEST CASE 1 WITH SIMPLE USAGE.
trycatchify(() => {
    func();
});
// :: TEST CASE 2 WITH 2ND PARAM AS CATCH CALLBACK HANDLER.
trycatchify(
    () => {
        func();
    },
    () => {
        console.log("Error occured :( ");
        console.log("This block is in action now!!");
    }
);

Thanks.

~ Sahil Rajput