32 packages found

    Description

    Error handler for fetch responses, e.g. Cloudflare Workers.

    Keywords

    Publisher

    published 1.0.210 months ago
    M
    Q
    P

    Description

    Safe version of require that returns undefined rather than throwing an error when the module is not found.

    Keywords

    Publisher

    published 1.0.49 months ago
    M
    Q
    P

    Description

    Starting from version 0.4.0 safejs implements almost all functions of [Async](https://github.com/caolan/async) and can transparently replace it. For asyncjs functions library adds its error trap capabilities and also contain some optimizations and speed i

    Keywords

    Publisher

    published 0.4.73 months ago
    M
    Q
    P

    Description

    Divhide javascript core components for NodeJs, Browser, Titanium, ... and everything that runs javascript.

    Keywords

    Publisher

    published 2.0.16 years ago
    M
    Q
    P

    Description

    A simple fs wrapper that doesn't throw

    Keywords

    Publisher

    published 1.2.04 days ago
    M
    Q
    P

    Description

    a safe error handler inspired by golang approach

    Keywords

    Publisher

    published 1.0.23 years ago
    M
    Q
    P

    Description

    A JSON validator and safe fallback utility for those rare times you can't trust your config.

    Keywords

    Publisher

    published 1.0.12 years ago
    M
    Q
    P

    Description

    Wrap regular functions & promises to make it possible to handle all 3 outcomes differently -- result, native exception, & application error.

    Keywords

    Publisher

    published 2.1.1a year ago
    M
    Q
    P

    Description

    Safe, simple, configurable JSON.stringify

    Keywords

    Publisher

    published 0.0.32 years ago
    M
    Q
    P

    Description

    Copy data from an object in a safe way

    Keywords

    Publisher

    published 1.0.07 years ago
    M
    Q
    P

    Description

    Exception safe functions and promises by converting thrown errors to values

    Keywords

    Publisher

    published 1.0.04 years ago
    M
    Q
    P

    Description

    JS Object manipulation with dot path and some magical helpers

    Keywords

    Publisher

    published 0.2.03 years ago
    M
    Q
    P

    Description

    safely execute multiple async callables as a unit of work then invoke callback with error/results.

    Keywords

    Publisher

    published 1.0.15 years ago
    M
    Q
    P

    Description

    Wraps a function in a try/catch block.

    Keywords

    Publisher

    published 1.0.06 years ago
    M
    Q
    P

    Description

    Extends jQuery with adding methods like ._val(), ._text(),etc.. They is based on default methods, but have errorCallback, which will be calling when something is wrong - like as an element is missing. It's an easy way to have debugging and provide a safe

    Keywords

    Publisher

    published 1.1.15 months ago
    M
    Q
    P

    Description

    Create a `Readable` stream that swithes to the fallback on error

    Keywords

    Publisher

    published 2.0.0-12 years ago
    M
    Q
    P

    Description

    Curried function that calls `JSON.parse` on provided input returning either the parsed JSON or the specified default value if the data fails to parse as valid JSON instead of throwing a `SyntaxError`.

    Keywords

    Publisher

    published 1.0.35 years ago
    M
    Q
    P

    Description

    Drop-in `action` replacement for MobX that can handle errors before throwing.

    Keywords

    Publisher

    published 1.2.23 years ago
    M
    Q
    P

    Description

    A lightweight, extensible set of tools for applying limitations to runtime values

    Keywords

    Publisher

    published 0.1.0a year ago
    M
    Q
    P

    Description

    Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.

    Keywords

    Publisher

    published 2.0.34 years ago
    M
    Q
    P