Skip to content
/ fire Public

Utility function for using Promise catch/finally syntax

License

Notifications You must be signed in to change notification settings

JGJP/fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utility function for using Promise catch/finally syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published