Search results

210 packages found

💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.

published version 1.5.4, a month ago0 dependents licensed under $MIT
9,642

|| DIE('reason') Throws an error like PHP 's `or DIE('REASON')`, Simple error throwing in a functional dev.

published version 1.2.3, 5 months ago4 dependents licensed under $ISC
11,264

If X, return Y, else throw Z.

published version 2.0.0, 7 years ago1 dependents licensed under $MIT
6,921

Throw on console.error() & fetch

published version 0.8.0, 2 years ago0 dependents licensed under $MIT
8,520

Provides Sass functions to standardize exception messages and assist with common validation

published version 1.1.1, 2 years ago8 dependents licensed under $MIT
6,914

ESLint plugin to highlight unawaited .catch() calls that contain throw statements

published version 0.0.5, 9 months ago3 dependents licensed under $MIT
5,159

Debug and detect MaxListenersExceededWarning: Possible EventEmitter memory leak detected warnings

published version 0.0.1, 7 years ago2 dependents licensed under $MIT
4,806

A Typescript assertion that only throws on null and undefined

published version 1.0.0, 3 months ago0 dependents licensed under $MIT
2,217

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

published version 3.1.1, 6 years ago2 dependents licensed under $MIT
1,992

Errors.

published version 0.3.3, 2 months ago2 dependents licensed under $Apache-2.0
3,042

Conditional promise catch handler

published version 3.0.0, 4 years ago16 dependents licensed under $MIT
3,142

A simple utility that helps throw exceptions.

published version 1.1.1, 4 years ago5 dependents licensed under $MIT
3,154

Safe Window Getters

published version 1.0.1-exodus.0, 2 years ago2 dependents licensed under $MIT
2,337

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

published version 1.0.0, 10 years ago3 dependents licensed under $MIT
2,323

Throw the error in the next tick

published version 0.1.0, 9 years ago3 dependents licensed under $ISC
1,746

Enforce required parameters or options in ES6.

published version 1.1.0, 8 years ago23 dependents licensed under $WTFPL
1,903

A simple fs wrapper that doesn't throw

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

Assert that two values are equal

published version 1.0.0, 9 years ago7 dependents licensed under $MIT
1,523

Remove directories recursively or non-recursively

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

Method to expect that an async function throws

published version 3.0.56, 10 days ago1 dependents licensed under $GPL-3.0-or-later
879