131 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 better errors.

Keywords

Publisher

published 7.1.32 months ago
M
Q
P

Description

Throw a given error

Keywords

Publisher

published 1.0.58 months ago
M
Q
P

Description

Throw better errors.

Keywords

Publisher

published 7.1.32 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.0a year ago
M
Q
P

Description

The Result and Option type from Rust ported to TypeScript.

Keywords

Publisher

published 2.1.85 months ago
M
Q
P

Description

A simple, expressive way to validate data in JavaScript.

Keywords

Publisher

published 0.10.123 months ago
M
Q
P

Description

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

Keywords

Publisher

published 2.6.06 months ago
M
Q
P

Description

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

Keywords

Publisher

published 9.5.55 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.1a year 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

A simplification of the node assert library for use with muggle

Keywords

Publisher

published 1.1.32 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.09 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

Throw better errors.

Keywords

Publisher

published 7.1.134 months ago
M
Q
P

Description

A production-grade error creation and serialization library designed for Typescript

Keywords

Publisher

published 1.1.23 hours ago
M
Q
P

Description

putout plugin adds ability to convert throw statement into throw expression

Keywords

Publisher

published 1.0.18 months 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

Method to expect that an async function throws

Keywords

Publisher

published 3.0.118 days ago