better-async-try-catch
v1.0.0
Published
A try-catch wrapper for Javascript.
Readme
Better Try-Catch
A try-catch wrapper for Javascript.
Example:
import catchError from 'better-trycatch'
// Or `const catchError = require("better-trycatch")`
const [error, result] = await catchError(Promise.reject("An Error"))
console.log(error)