@jgjp/fire
v1.0.0
Published
Execute logic in a promise-like wrapper
Downloads
50
Readme
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