logcatch
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

LogCatch is designed to fill in any time you need to log and throw an error from a Promise catch

Simply import or require it

import LogCatch from "logcatch";

Use as such:

Log as a Warning and throw the error

.catch(LogCatch.Throw)

Log as a Warning and return the error

.catch(LogCatch.Return)

Package Sidebar

Install

npm i logcatch

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

2.05 kB

Total Files

6

Last publish

Collaborators

  • digimbyte