Search results
210 packages found
A simple and lightweight way to create a safe result in Typescript
Eor is a try-catch wrapper that returns an [error, data] tuple.
A simple idiom for trying out blocks of code in sequence.
Sends non-filtered errors to a blackhole.
Parse a string as JSON.
If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.
- stdlib
- stdutils
- stdutil
- utilities
- utility
- utils
- util
- asynchronous
- async
- try
- catch
- then
- try-catch
- try-then
- View more
Optionals for JS
Tries to import a module. Ignores any error that occurs.
A type-safe way to create and handle errors.
Transform stream to remove require calls from inside a try{} statement
A small utility for JSON (parse and stringify) that follows error first approach inspired from rust.
Wrap a function in a try/catch block.
automatically report an error in a catch block
Catch errors without try...catch...
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
> > > A simple, lightweight library offering iterable try-catch decorators.
If a function does not throw, return the function return value; otherwise, return the return value of a second function.
Catches errors, allows edits of them and throws errors again.