Search results

363 packages found

`Start a promise chain

published version 3.0.0, 4 years ago1893 dependents licensed under $MIT
228,230,469

Retry a promise-returning or async function

published version 6.2.1, 5 months ago1475 dependents licensed under $MIT
74,953,061

Tries to execute a function and discards any error that occurs

published version 3.0.1, 3 years ago801 dependents licensed under $MIT
60,992,912

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 ago523 dependents licensed under $Artistic-2.0
37,356,193

Library that can be used to retry functions that return promise

published version 3.1.0, a year ago216 dependents licensed under $MIT
753,942

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

published version 0.1.2, 12 years ago17 dependents licensed under $MIT
861,799

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

published version 1.0.3, 8 years ago27 dependents licensed under $MIT
553,308

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
494,962

function try-catch wrapper for promises

published version 3.0.1, 3 years ago75 dependents licensed under $MIT
205,910

Retry a promise-returning or async function

published version 6.2.0-2, a year ago1 dependents licensed under $MIT
340,563

Transient exception handling

published version 1.8.3, 3 years ago38 dependents licensed under $MIT
120,143

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
148,854

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

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

Read JSON files without try catch

published version 3.0.0, 2 years ago7 dependents licensed under $MIT
57,166

Read files without try catch

published version 2.1.1, 2 years ago9 dependents licensed under $MIT
56,246

Wrap `require` in a try/catch block.

published version 0.2.2, 9 months ago328 dependents licensed under $Apache-2.0
31,541

[![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
24,197

An elegant try-catch replacement for JavaScript / TypeScript

published version 1.1.1, 2 months ago2 dependents licensed under $MIT
26,439

A JavaScript extension package for building strong and modern applications.

published version 1.6.0, a month ago8 dependents licensed under $MIT
20,320

Tries to open a file using fs.openSync (only necessary with sync), fails gracefully if the file path does not exist on the file system. Since fs.existsSync has been deprecated, this can be used as an alternative.

published version 0.1.3, 9 years ago3 dependents licensed under $MIT
22,536