30 packages found

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.1a year ago
M
Q
P

Description

Safe, simple, configurable JSON.stringify

Keywords

Publisher

published 0.0.39 months ago
M
Q
P

Description

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

Keywords

Publisher

published 2.0.15 years ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.115 days 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.34 years ago
M
Q
P

Description

a safe error handler inspired by golang approach

Keywords

Publisher

published 1.0.22 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.18 days ago
M
Q
P

Description

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

Keywords

Publisher

published 0.1.04 months ago
M
Q
P

Description

Copy data from an object in a safe way

Keywords

Publisher

published 1.0.06 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.14 years ago
M
Q
P

Description

Exception safe functions and promises by converting thrown errors to values

Keywords

Publisher

published 1.0.03 years 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.62 years ago
M
Q
P

Description

JS Object manipulation with dot path and some magical helpers

Keywords

Publisher

published 0.2.02 years ago
M
Q
P

Description

Safe, simple, configurable JSON.stringify logging

Keywords

Publisher

published 0.0.29 months ago
M
Q
P

Description

Wraps a function in a try/catch block.

Keywords

Publisher

published 1.0.05 years ago
M
Q
P

Description

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

Keywords

Publisher

published 2.0.0-1a year ago
M
Q
P

Description

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

Keywords

Publisher

published 1.2.22 years 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.33 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.34 years ago
M
Q
P

Description

A collection of simple runtime assertions inspired by Facebook's invariant and warning.

Keywords

Publisher

published 1.0.13 years ago