15 packages found
assert + error-first callback
handles error first callbacks
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
A tiny, TypeScript-first, result/error handling utility.
Error first callback for listening on the server.
simple, lightweight, dependency-free library to emulate error-first handling in async/await scenarios
Simple auto focus to first Formik error
The function converts anything into an object of Error (or subclasses) class. If `error` is an object of Error (or subclasses) class, it returns the original `error` object. With any other type, it will convert it into a string first and then an Error obj
Simple auto focus to first Formik error
Richer errors with first-class Typescript support.
Catch-first can simplify the code and handle exceptions better and more safely.
Converts result-first callbacks to classic (node.js-style) error-first callbacks with 3 lines of code. Useful when you want to promisify result-first APIs (like emitter.on). Inspired by [rfpify][] and probably used in it.
Throw an error if there is an error.
Restrict the given function only be invoked once. Repeat calls to the function return the value of the first invocation.
Restart a long running error-first callback function on error.