@gourmet/promise-protect

0.3.3 • Public • Published

@gourmet/promise-protect

Protects a function from exceptions and wraps the return value with a promise

Why?

This is syntactically explicit and slightly more efficient than Promise.resolve().then(...).

Readme

Keywords

none

Package Sidebar

Install

npm i @gourmet/promise-protect

Weekly Downloads

0

Version

0.3.3

License

MIT

Unpacked Size

2.08 kB

Total Files

5

Last publish

Collaborators

  • gourmet