0.0.4 • Published 11 months ago

safe-try v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

safe-try

Want this?

const [result, error] = try await asyncMightFail();

Do this!

const [result, error] = await try_(asyncMightFail());

Inspired by Matt Pocock's tweet:

tweet-1823822755562967230

Usage

import { try_ } from "safe-try";
const [result, error] = await try_(asyncMightFail());
0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago