1.3.1 • Published 3 years ago

no-try-catch v1.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

no-try-catch

Yet another promise wrapper to avoid try/catch hell. Typescript supported.

Example

import wrapper from "no-try-catch";

let result = await wrapper(somePromise, [arg1, arg2, arg3]);

if (result.error) return console.error(result.error);

console.log(result.data);

Side note

To anyone that downloaded a version previous to 1.1.0, sorry because I accidentally published an outdated version which returned a tuple instead of an object. You can use it now. :)

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago