Search results

218 packages found

Handle exceptions by just annotating a method or class with a decorator. Based on enkot/catch-decorator.

published 1.0.5 a year ago
M
Q
P

Functional JavaScript try-catch implementation

published 1.0.2 10 months ago
M
Q
P

Easy and flattened error handling for sync and async functions

published 3.0.2 6 months ago
M
Q
P

function try-catch wrapper for promises

published 3.0.1 3 years ago
M
Q
P

Deal with code that can throw

published 2.0.1 10 months ago
M
Q
P

A better try/catch like way to get your errors.

published 1.1.8 a year ago
M
Q
P

An alternative library for try-catch blocks, helps reduce the code and make it cleaner and more readable using anonymous functions.

published 1.0.1 8 months ago
M
Q
P

💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.

published 1.3.1 2 months ago
M
Q
P

A simple and lightweight way to create a safe result in Typescript

published 1.0.13 3 months ago
M
Q
P

Parse a string as JSON.

published 0.2.2 2 months ago
M
Q
P

If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.

published 0.2.2 2 months ago
M
Q
P

Flatry converting promise or function to flat array response. Inspired by golang style error handling without try/catch.

published 1.0.15 8 months ago
M
Q
P

Tries to execute a sync/async function, returns a result tuple

published 5.0.0 4 months ago
M
Q
P

Safe and structured error handling for JavaScript.

published 0.1.0 a month ago
M
Q
P

Wrap a function in a try/catch block.

published 0.2.2 2 months ago
M
Q
P

A decorator that enforces a time limit on the execution of an async method.

published 1.0.3 3 months ago
M
Q
P

If a function does not throw, return the function return value; otherwise, return the return value of a second function.

published 0.2.2 2 months ago
M
Q
P

Read files without try catch

published 2.1.1 a year ago
M
Q
P

A small utility for JSON (parse and stringify) that follows error first approach inspired from rust.

published 1.0.3 8 months ago
M
Q
P

A simple, lightweight and isomorphic extension of the Fetch API that allows for graceful error handling and response validation, automatic retries, and the ability to bring your own Fetch API package.

published 1.3.0 a year ago
M
Q
P