error-first
Convert async/await try/catch to [error, result]
tl;dr
Details
Given an async operation
With error-first
// const errorFirst = require('error-first').default
With standard async/await
try catcherror
Convert async/await try/catch to [error, result]
// const errorFirst = require('error-first').default
try catcherror
npm i error-first
1
0.9.4
MIT