Search results
210 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.
|| DIE('reason') Throws an error like PHP 's `or DIE('REASON')`, Simple error throwing in a functional dev.
If X, return Y, else throw Z.
Throw on console.error() & fetch
Provides Sass functions to standardize exception messages and assist with common validation
ESLint plugin to highlight unawaited .catch() calls that contain throw statements
Debug and detect MaxListenersExceededWarning: Possible EventEmitter memory leak detected warnings
A Typescript assertion that only throws on null and undefined
Error3 is proper JS error implementation. It supports error codes, message formatting (e.g. i18n) and nested errors.
Errors.
Conditional promise catch handler
A simple utility that helps throw exceptions.
Safe Window Getters
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
Throw the error in the next tick
Enforce required parameters or options in ES6.
A simple fs wrapper that doesn't throw
Assert that two values are equal
Remove directories recursively or non-recursively
Method to expect that an async function throws