@jgjp/fire
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/@jgjp/fire/

    Package Sidebar

    Install

    npm i @jgjp/fire

    Weekly Downloads

    10

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.51 kB

    Total Files

    6

    Last publish

    Collaborators

    • jgjp