Search results

366 packages found

`Start a promise chain

published version 3.0.0, 4 years ago1903 dependents licensed under $MIT
247,210,903

Retry a promise-returning or async function

published version 6.2.1, 6 months ago1498 dependents licensed under $MIT
77,222,960

Tries to execute a function and discards any error that occurs

published version 3.0.1, 3 years ago800 dependents licensed under $MIT
66,182,776

Node's domain module for the web browser. This is merely an evented try...catch with the same API as node, nothing more.

published version 5.7.0, a year ago524 dependents licensed under $Artistic-2.0
39,005,699

Library that can be used to retry functions that return promise

published version 3.1.0, a year ago218 dependents licensed under $MIT
875,686

return fn() or default value (in case of exception)

published version 0.1.2, 12 years ago17 dependents licensed under $MIT
875,720

Break out of functions, recursive or not, in a more composable way than by using exceptions explicitly. Non-local return.

published version 1.0.0, 11 years ago8 dependents licensed under $MIT
495,232

Module to wrap try-catch for better performance and cleaner API.

published version 1.0.3, 9 years ago27 dependents licensed under $MIT
475,648

Retry a promise-returning or async function

published version 6.2.0-2, a year ago1 dependents licensed under $MIT
404,007

function try-catch wrapper for promises

published version 3.0.1, 3 years ago76 dependents licensed under $MIT
198,459

Transient exception handling

published version 1.8.3, 3 years ago38 dependents licensed under $MIT
124,956

Read JSON files without try catch

published version 3.0.0, 2 years ago7 dependents licensed under $MIT
90,325

Basic wrapper for await that allows handling of errors without try/catch blocks

published version 1.1.2, 7 years ago2 dependents licensed under $MIT
159,894

Async/await wrapper with error handling, retry and error override

published version 1.0.2, 6 years ago41 dependents licensed under $MIT
132,910

Read files without try catch

published version 2.1.1, 2 years ago9 dependents licensed under $MIT
84,210

An elegant try-catch replacement for JavaScript / TypeScript

published version 1.1.1, 3 months ago2 dependents licensed under $MIT
39,879

[![npm](https://img.shields.io/npm/v/p-safe)](https://www.npmjs.com/package/p-safe) [![npm bundle size](https://packagephobia.now.sh/badge?p=p-safe)](https://packagephobia.now.sh/result?p=p-safe)

published version 1.0.0, a year ago8 dependents licensed under $MIT
22,126

TypeScript utilities for exception handling and errors-as-values.

published version 0.2.1, a month ago0 dependents licensed under $MIT
34,558

Wrap `require` in a try/catch block.

published version 0.2.2, 10 months ago328 dependents licensed under $Apache-2.0
27,110

A JavaScript extension package for building strong and modern applications.

published version 1.7.3, 20 days ago8 dependents licensed under $MIT
18,815