1.0.0 • Published 1 year ago
@jgjp/fire v1.0.0
fire
Execute any logic inside a promise-like function
Installation
$ npm install @jgjp/fire
API
import fire from '@jgjp/fire';
const { data } = await fire(async () => {
// do something
})
.catch(handleError)
.finally(cleanup)
// use data
License
MIT