Search results
161 packages found
Non-intrusively convert the result of any function or promise to the user's desired style.
Set Error cause
Copy an error object.
A typescript implementation of Rust's Result and Option objects. (Forked)
Returns a JSON representation of an error (handles nested errors and calls nested toJSONs)
Parse errors in the Browser and Node. Made for Cabin.
Easily generate "custom" error objects with addition properties which can be stringfied with JSON.stringify
Clean up error stack traces from node internals
Create an error from an array of error messages
Makes easy to use HTTP status and errors.
A production-grade error creation and serialization library designed for Typescript
- error
- throw
- custom
- generate
- new
- extends
- factory
- subclass
- inherit
- extension
- create
- typescript
- serialize
- collection
- View more
Thorw error objects directly from express response
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
Check native type of value and throw AssertionError if not okey. Clean stack traces. Simplicity. Built on [is-kindof][].
- assert
- assertion
- check
- checking
- checktype
- clean
- cleanstack
- err
- error
- kind
- kindof
- kinds
- simple
- simplicity
- View more
Modify given `err` object to be more useful - adds `at`, `line`, `column`, `place` and `filename` properties and also cleans stack traces.
- check
- clean
- clean-stack
- clean-stacktrace
- column
- err
- error
- error-stack
- error-stack-traces
- line
- meta
- metadata
- relative
- short
- View more
Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.
Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100% of its tests plus more
- always
- alwaysdone
- async
- asyncawait
- asynchronous
- await
- callback
- callbacks
- cb
- child
- childprocess
- complete
- completion
- done
- View more
Returns a JSON representation of an error object.