Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 301 Bytes

readme.md

File metadata and controls

26 lines (16 loc) · 301 Bytes

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