Search results
218 packages found
Handle exceptions by just annotating a method or class with a decorator. Based on enkot/catch-decorator.
Functional JavaScript try-catch implementation
Easy and flattened error handling for sync and async functions
function try-catch wrapper for promises
Deal with code that can throw
A better try/catch like way to get your errors.
An alternative library for try-catch blocks, helps reduce the code and make it cleaner and more readable using anonymous functions.
💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.
A simple and lightweight way to create a safe result in Typescript
Parse a string as JSON.
If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.
- stdlib
- stdutils
- stdutil
- utilities
- utility
- utils
- util
- asynchronous
- async
- try
- catch
- then
- try-catch
- try-then
- View more
Flatry converting promise or function to flat array response. Inspired by golang style error handling without try/catch.
Tries to execute a sync/async function, returns a result tuple
Safe and structured error handling for JavaScript.
Wrap a function in a try/catch block.
A decorator that enforces a time limit on the execution of an async method.
If a function does not throw, return the function return value; otherwise, return the return value of a second function.
Read files without try catch
A small utility for JSON (parse and stringify) that follows error first approach inspired from rust.
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.
- fetch
- client
- browser
- server
- client-side
- server-side
- async
- await
- validate
- validator
- validation
- response
- request
- API
- View more