0.0.4 • Published 12 months ago

safe-try v0.0.4

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

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago