Search results

366 packages found

try/catch block with a callback, used in [try-catch-core][]. Use it when you don't care about asyncness so much and don't want guarantees. If you care use [try-catch-core][].

published version 2.0.2, 8 years ago7 dependents licensed under $MIT
1,276

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

published version 1.0.5, 2 years ago0 dependents licensed under $MIT
1,839

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

published version 6.2.0, a month ago1 dependents licensed under $MIT
1,670

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

published version 1.0.1, 5 years ago0 dependents licensed under $MIT
1,183

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

published version 1.1.8, 2 years ago1 dependents licensed under $MIT
1,458

Parse a string as JSON.

published version 0.2.2, 10 months ago2 dependents licensed under $Apache-2.0
1,218

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

published version 1.0.15, a year ago5 dependents licensed under $MIT
1,026

Attempts to parse an input string as JSON5.

published version 1.0.0, 10 years ago2 dependents licensed under $MIT
1,005

tryit + verror = Verbosely try.

published version 1.0.9, 3 years ago13 dependents licensed under $ISC
1,336

Check if a directory exists without try catch

published version 1.1.0, 4 years ago1 dependents licensed under $MIT
1,114

Errors that you can catch by type.

published version 10.1.0, 5 years ago22 dependents licensed under $MIT
1,212

A simple fs wrapper that doesn't throw

published version 1.2.0, 4 years ago1 dependents licensed under $MIT
1,107

try method like rails for Node

published version 1.0.0, 14 years ago1 dependents
838

Useful scala classes in typescript

published version 1.4.5, 6 months ago5 dependents licensed under $ISC
970

Remove directories recursively or non-recursively

published version 2.0.0, 4 years ago0 dependents licensed under $MIT
1,151

A 373-byte Spec-Compliant Runtime-Only Implementation of the ECMAScript Try Operator Proposal Result class

published version 1.0.0-beta.8, 2 days ago4 dependents licensed under $MIT
978

Give your functions another chance

published version 0.1.1, 6 years ago1 dependents licensed under $MIT
883

Easy and flattened error handling for sync and async functions

published version 3.0.2, a year ago0 dependents licensed under $MIT
869

really simple error handling with await/async

published version 0.1.4, 6 years ago1 dependents licensed under $MIT
885

A better way to handle errors in JavaScript and TypeScript. Handle async and sync errors without `try` and `catch` blocks.

published version 0.7.4, 3 months ago0 dependents licensed under $MIT
743