Search results

210 packages found

A simple and lightweight way to create a safe result in Typescript

published 1.0.11 4 months ago
M
Q
P

Eor is a try-catch wrapper that returns an [error, data] tuple.

published 0.2.0 2 years ago
M
Q
P

A simple idiom for trying out blocks of code in sequence.

published 0.1.4 6 years ago
M
Q
P

Sends non-filtered errors to a blackhole.

published 0.1.0 10 years ago
M
Q
P

Parse a string as JSON.

published 0.2.1 2 months ago
M
Q
P

If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.

published 0.2.1 2 months ago
M
Q
P
M
Q
P

Tries to import a module. Ignores any error that occurs.

published 1.1.0 7 months ago
M
Q
P

A type-safe way to create and handle errors.

published 1.4.1 5 months ago
M
Q
P

Transform stream to remove require calls from inside a try{} statement

published 0.0.0 10 years ago
M
Q
P

A small utility for JSON (parse and stringify) that follows error first approach inspired from rust.

published 1.0.3 4 months ago
M
Q
P

Wrap a function in a try/catch block.

published 0.2.1 2 months ago
M
Q
P

Simple helper wrapping try catch

published 1.0.0 4 years ago
M
Q
P

automatically report an error in a catch block

published 0.1.0 3 months ago
M
Q
P

Catch errors without try...catch...

published 1.4.1 8 months ago
M
Q
P

Small async/await wrapper which allows a similar paradigm to Node's callbacks mixed with [React Hooks](https://reactjs.org/docs/hooks-intro.html). `await-wrap` wraps any async function and respond with an array with either `data` or `err`, allowing you to

published 1.1.0 5 years ago
M
Q
P

> > > A simple, lightweight library offering iterable try-catch decorators.

published 1.0.18 a year ago
M
Q
P

If a function does not throw, return the function return value; otherwise, return the return value of a second function.

published 0.2.1 2 months ago
M
Q
P

Async try catch

published 0.3.7 6 years ago
M
Q
P

Catches errors, allows edits of them and throws errors again.

published 1.1.0 9 months ago
M
Q
P