1.0.0 • Published 1 year ago

@jgjp/fire v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1.0.0

1 year ago

0.1.0

2 years ago