JSPM

Found 150 results for err

verror

richer JavaScript errors

  • v1.10.1
  • 107.61
  • Published

err-code

Create an error with a code

  • v3.0.1
  • 106.20
  • Published

layerr

Error wrapping utility for NodeJS and the browser

  • v3.0.0
  • 74.12
  • Published

array-to-error

Create an error from an array of error messages

  • v1.1.1
  • 71.00
  • Published

@stdlib/utils-copy

Copy or deep clone a value to an arbitrary depth.

  • v0.2.2
  • 62.56
  • Published

error-to-json

Returns a JSON representation of an error (handles nested errors and calls nested toJSONs)

  • v2.0.1
  • 60.59
  • Published

try-json-parse

Doesn't throw an error when JSON.parse() fails, just returns undefined

  • v1.0.0
  • 58.69
  • Published

failure

Easily generate "custom" error objects with addition properties which can be stringfied with JSON.stringify

  • v1.1.1
  • 56.43
  • Published

cbw

callback wrapper

  • v1.4.1
  • 54.07
  • Published

parse-err

Parse errors in the Browser and Node. Made for Cabin.

  • v1.0.0
  • 52.69
  • Published

errr

Error factory with the ability to append stack traces from previous errors, as well as appending debug params to stack traces. Great if you want one appended stack trace that defines the error at many levels of your code. This concept works wonders when

  • v2.7.0
  • 49.26
  • Published

rfc-log-levels

A map of log level aliases matched to their numeric values. Follows the RFC Standard.

  • v4.3.0
  • 48.60
  • Published

clean-stacktrace

Clean up error stack traces from node internals

  • v1.1.0
  • 43.61
  • Published

return-style

Non-intrusively convert the result of any function or promise to the user's desired style.

  • v3.0.1
  • 43.53
  • Published

throwlhos

Thorw error objects directly from express response

  • v1.0.1
  • 41.80
  • Published

console-redirect

redirect console methods to streams

  • v1.0.0
  • 41.55
  • Published

@stdlib/error-tools-msg2id

Return a two-character error identifier corresponding to a provided error message.

  • v0.2.2
  • 41.37
  • Published

verror-0

VError without dependencies on top of nodejs standart library

  • v1.2.2
  • 39.28
  • Published

utils-error-to-json

Returns a JSON representation of an error object.

  • v1.0.0
  • 38.17
  • Published

@wopjs/tsur

TypeScript goodies inspired by Rust.

  • v0.1.7
  • 37.63
  • Published

egads

Yet another extensible error library for node.js

  • v1.0.2
  • 37.33
  • Published

stacktrace-metadata

Modify given `err` object to be more useful - adds `at`, `line`, `column`, `place` and `filename` properties and also cleans stack traces.

  • v2.0.4
  • 36.69
  • Published

find-callsite

Finds the correct place where the stack trace was started, not the place where error was thrown

  • v1.1.3
  • 36.33
  • Published

always-done

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

  • v1.1.0
  • 36.20
  • Published

@hazae41/result

Rust-like Result for TypeScript

  • v1.3.3
  • 35.50
  • Published

handle-errors

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

  • v1.0.0
  • 35.11
  • Published

err-handler

Avoid if(err)return bla bla bla

  • v1.0.5
  • 32.94
  • Published

new-error

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

  • v2.2.0
  • 32.22
  • Published

havildar

A Error middleware for express

  • v1.0.2
  • 31.97
  • Published

okej

A bare-metal Result type for Javascript/TypeScript

  • v0.0.13
  • 31.94
  • Published

trynot

Rust-like results in TypeScript

  • v0.0.2
  • 31.28
  • Published

@ravdocs/assert

Wrapper around the assert module

  • v1.0.16
  • 31.20
  • Published

notify-error

send an error notifications

  • v1.2.0
  • 30.61
  • Published

ignore-errors

Easily ignore specific promise errors

  • v3.0.1
  • 29.90
  • Published

bugsplat

error reporting for js

  • v8.0.1
  • 27.93
  • Published

async-err

An easy way to make an error in Node.js async, when it would sync otherwise.

  • v0.0.3
  • 25.81
  • Published

@hazae41/kdbx

Rust-like KeePass (KDBX 4) file format for TypeScript

  • v0.1.6
  • 24.80
  • Published

skiperr

A less-instrusive way of passing errors along in JavaScript / NodeJS.

  • v0.0.3
  • 24.15
  • Published

@hazae41/apdu

Rust-like APDU protocol for TypeScript

  • v1.0.2
  • 22.49
  • Published

@stdlib/stats-incr-mmape

Compute a moving mean absolute percentage error (MAPE) incrementally.

  • v0.2.2
  • 21.96
  • Published

@stdlib/stats-incr-mmaape

Compute a moving arctangent mean absolute percentage error (MAAPE) incrementally.

  • v0.2.2
  • 21.62
  • Published

@stdlib/stats-incr-maape

Compute the mean arctangent absolute percentage error (MAAPE) incrementally.

  • v0.2.2
  • 21.53
  • Published

assert-kindof

Check native type of value and throw AssertionError if not okey. Clean stack traces. Simplicity. Built on [is-kindof][].

  • v2.0.1
  • 21.37
  • Published

err-cause

Set Error cause

  • v1.1.2
  • 19.50
  • Published

letta

Promisify sync, async or generator function, using [relike][]. Kind of promisify, but lower level. Full compatibility with [co][]4 and passing 100% of its tests.

  • v0.5.2
  • 18.91
  • Published

kind-of-extra

Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.

  • v1.0.4
  • 18.51
  • Published

error-extractor

Extract error message from an object using known error properties.

    • v1.0.1
    • 17.47
    • Published

    @stdlib/error-tools-id2msg

    Return an error message corresponding to a provided two-character error identifier.

    • v0.2.2
    • 16.78
    • Published

    expected

    Simple error message formatting.

    • v0.1.0
    • 14.94
    • Published

    exception

    Generate heap dumps and detailed output for uncaught exceptions and critical errors

    • v1.0.9
    • 13.41
    • Published

    @hazae41/latrine

    Secure and private reimplementation of the WalletConnect protocol

    • v1.1.4
    • 13.10
    • Published

    d.jserror

    A simple module to make showing users an error easier

    • v1.0.10
    • 12.22
    • Published

    resulta

    resulta is a TypeScript utility for handling results in an expressive way, inspired by Rust's Result type.

    • v1.1.1
    • 11.91
    • Published

    thrown

    Generic Error Handler

    • v0.9.0
    • 11.86
    • Published

    errnext

    Generic middleware based on (err, next, ...args) pattern.

    • v1.0.1
    • 11.77
    • Published

    errorie

    Custom JavaScript errors

    • v1.0.0
    • 11.65
    • Published

    errly

    Better error handling in TypeScript.

    • v0.0.2
    • 11.41
    • Published

    nexterr

    Generic middleware based on (next, err, ...args) pattern.

    • v1.0.0
    • 11.27
    • Published

    @sullux/fp-light-trap

    A lightweight functional library for functional composition and object composition.

    • v0.0.1
    • 10.97
    • Published

    callback-handler

    This is a utility package to handle errors and unwanted results automatically. It is used to improve readability of code and simplify working with callbacks.

    • v0.1.3
    • 10.90
    • Published

    code-err

    create error instances with a code (and props)

    • v3.1.0
    • 10.73
    • Published

    http-staror

    Makes easy to use HTTP status and errors.

    • v1.0.7
    • 10.39
    • Published

    base-plugins-enhanced

    Error handling and extras for `.use` and `.run` methods of your Base apps. Modifies `.use` method to be able to 1) accept array of functions, 2) options object as second argument. Emits `error` event if some plugin fails.

    • v0.1.2
    • 10.37
    • Published

    to-callback

    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.

    • v1.0.1
    • 9.85
    • Published

    error-shortener

    generates a string containing a message and trimmed stack from error

    • v1.0.2
    • 9.37
    • Published

    error-format

    Allows you to customize the toString method of passed `err`. Also adds useful properties like `line`, `filename` and `column` to the `err` object.

    • v1.0.1
    • 8.76
    • Published

    taperr

    tape error events for t.fail(msg)

    • v0.1.1
    • 8.30
    • Published

    binford-err

    Not so strongly typed error

    • v0.0.1
    • 8.07
    • Published

    @ghaerdi/rustify

    A TypeScript library implementing Rust-like error handling with Result, Ok, and Err types.

    • v1.2.0
    • 7.62
    • Published

    httpstatusview

    Displays http status in browser, good for error handling.

    • v1.0.2
    • 7.50
    • Published

    custom-err

    Easily create an error with custom properties attached.

    • v0.0.2
    • 7.36
    • Published

    errd

    Collection of error handling utilities for JavaScript and TypeScript.

    • v1.0.0
    • 7.30
    • Published

    @scottnonnenberg/notate

    Extra err.stack entries for debuggability. Better than your plain 'if (err) { return cb(err) }'

    • v1.0.0
    • 7.30
    • Published

    catchup

    Graceful error handling. Because core `domain` module is deprecated. This share almost the same API.

    • v1.0.0
    • 6.72
    • Published

    if-err

    get rid of `if (err) throw err`

    • v0.3.0
    • 6.70
    • Published

    jm-err

    common error defines as JSON format

    • v1.0.8
    • 6.69
    • Published

    perr

    Portable errors for Javascript

    • v0.1.1
    • 6.58
    • Published

    ercb

    For those who don't like the node (er, result) convention

    • v1.0.0
    • 6.46
    • Published

    @gotoeasy/err

    一个用于node环境的Error子类,提供更丰富的构造参数接口,更友好的code-frame提示,消息拼接等功能,详见Sample截图

    • v0.4.1
    • 6.46
    • Published

    throwandtell

    ThrowAndTell Error Reporter Client for Node.js

      • v0.1.0
      • 5.49
      • Published

      err-loggr

      This is a small lib to help create and manage log files

        • v1.2.0
        • 5.49
        • Published

        eros

        A lightweight set of error utilities for node.js

        • v0.0.1
        • 4.24
        • Published

        gh-logger

        This module logs errors that you give it to log.

        • v1.0.1
        • 4.15
        • Published

        inl-error

        test err handler

        • v1.0.9
        • 4.15
        • Published

        flawless

        A callback factory which splits away handling errors into a separate flow and thus requiring less boilerplate code.

        • v0.1.1
        • 4.07
        • Published

        jsonerr

        Function to get JSON friendly object from error (Node/V8 only).

        • v1.1.0
        • 4.07
        • Published

        on-err

        A callback wrapper library that reduces the number of checks needed to propagate errors up the callback chain

        • v0.0.1
        • 4.04
        • Published

        errfly

        handle callback err with node style

        • v0.0.1
        • 2.36
        • Published

        verror-2

        verror that also works for browsers and react-native

        • v1.0.0
        • 0.00
        • Published

        errlogging

        a javascript library to log errors

        • v1.0.0
        • 0.00
        • Published

        oker

        A version of Rust's result type in Typescript, which can be Ok or Err (oker)

        • v0.1.0
        • 0.00
        • Published

        forcereq

        Require module but with error handeling

          • v1.0.0
          • 0.00
          • Published

          itmao-rescc

          提供了响应错误信息的中间件

            • v1.0.1
            • 0.00
            • Published