0.0.4 • Published 1 year ago

safe-try v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago