New Power Manual

    168 packages found

    Make unhandled promise rejections fail loudly instead of the default silent fail

    published 2.2.0 3 years ago
    M
    Q
    P

    Make unhandled promise rejections fail hard right away instead of the default silent fail

    published 2.1.0 4 years ago
    M
    Q
    P

    Throw a given error

    published 2.0.2 a year ago
    M
    Q
    P

    Break out of functions, recursive or not, in a more composable way than by using exceptions explicitly. Non-local return.

    published 1.0.0 9 years ago
    M
    Q
    P

    A simple and composable way to validate data in JavaScript (and TypeScript).

    published 1.0.3 22 days ago
    M
    Q
    P

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

    published 1.1.1 7 years ago
    M
    Q
    P

    Shortcut to throw an error

    published 1.0.3 5 years ago
    M
    Q
    P

    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 1.0.0 8 years ago
    M
    Q
    P

    Try to parse a string as JSON and return undefined on failure

    published 1.1.4 6 years ago
    M
    Q
    P

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

    published 3.1.1 4 years ago
    M
    Q
    P

    Collection of functions that return specific values (noop, true, false, echo, etc)

    published 1.0.6 7 years ago
    M
    Q
    P

    Throw better errors.

    published 7.1.3 2 years ago
    M
    Q
    P

    Utility for enforcing type-system establish invariants at runtime.

    published 1.0.0 5 years ago
    M
    Q
    P

    use this domain for easier error handling for event-emitters

    published 1.0.1 7 years ago
    M
    Q
    P

    Throw an error when the max number of EventEmitter listeners is exceeded

    published 1.0.1 7 years ago
    M
    Q
    P

    Set of methods allowing simplify work with promises in cycle such as: forEach, map, find, filter, reduce, while, transform. Besides there are methods for comfortable work with promises or asynchronous operations - all, retry, timeout.

    published 3.0.1 5 months ago
    M
    Q
    P

    Simple date parse util, throws error or returns null if date is invalid

    published 1.1.0 7 years ago
    M
    Q
    P

    make assertion functions into boolean tests

    published 1.0.0 10 years ago
    M
    Q
    P

    Give some meaning to throw errors

    published 2.3.0 5 years ago
    M
    Q
    P

    throw expression as a function

    published 0.2.0 5 years ago
    M
    Q
    P