135 packages found

M
Q
P

Description

Make unhandled promise rejections fail loudly instead of the default silent fail

Keywords

Publisher

published 2.2.0a year ago
M
Q
P

Description

Throw a given error

Keywords

Publisher

published 1.0.59 months ago
M
Q
P

Description

Throw better errors.

Keywords

Publisher

published 7.1.33 months ago
M
Q
P

Description

Throw better errors.

Keywords

Publisher

published 7.1.33 months ago
M
Q
P

Description

Make unhandled promise rejections fail hard right away instead of the default silent fail

Keywords

Publisher

published 2.1.02 years ago
M
Q
P

Description

A simple, expressive way to validate data in JavaScript.

Keywords

Publisher

published 0.10.124 months ago
M
Q
P

Description

The Result and Option type from Rust ported to TypeScript.

Keywords

Publisher

published 2.1.86 months ago
M
Q
P

Description

Method to expect that an async function throws

Keywords

Publisher

published 3.0.225 days ago
M
Q
P

Description

Rust-inspired Result object for more elegant success and failure handling

Keywords

Publisher

published 2.6.07 months ago
M
Q
P

Description

Skema provides a handy & composable way to validate / transform / purify the input data.

Keywords

Publisher

published 9.5.56 months ago
M
Q
P

Description

Error3 is proper JS error implementation. It supports error codes, message formatting (e.g. i18n) and nested errors.

Keywords

Publisher

published 3.1.12 years ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.06 years ago
M
Q
P

Description

Easily generate "custom" error objects with addition properties which can be stringfied with JSON.stringify

Keywords

Publisher

published 1.1.15 years ago
M
Q
P

Description

An accumulator for only errors that tries to interrupt and throw an error if the storage is not empty.

Keywords

Publisher

published 0.1.010 months ago
M
Q
P

Description

Handling/creating hybrid errors. Hybrid middleware between callbacks and throws. Helpful util for modules that have hybrid APIs and want when they use promises, directly to throw the errors; when use callbacks to pass errors to first argument of this call

Keywords

Publisher

published 1.0.06 years ago
M
Q
P

Description

Try to parse a string as JSON and return undefined on failure

Keywords

Publisher

published 1.1.44 years ago
M
Q
P

Description

Throw better errors.

Keywords

Publisher

published 7.1.135 months ago
M
Q
P

Description

Remove directories recursively or non-recursively

Keywords

Publisher

published 1.0.117 days ago
M
Q
P

Description

A simple fs wrapper that doesn't throw

Keywords

Publisher

published 1.1.217 days ago
M
Q
P

Description

putout plugin adds ability to convert throw statement into throw expression

Keywords

Publisher

published 1.0.19 months ago