Skip to content

Commit 14917d7

Browse files
committed
✏️ add a Why section
1 parent dc09bae commit 14917d7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readme.md

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
[![Gzipped Size](https://img.shields.io/bundlephobia/minzip/good-try)](https://bundlephobia.com/result?p=good-try)
66
[![Build Status](https://img.shields.io/github/workflow/status/astoilkov/good-try/CI)](https://github.com/astoilkov/good-try/actions/workflows/main.yml)
77

8+
## Why
9+
10+
Why not [`nice-try`](https://github.com/electerious/nice-try) with it's 70+ million downloads per month?
11+
- `good-try` supports async functions.
12+
- `good-try` supports an optional default value.
13+
- `good-try` allows you to capture the thrown error.
14+
- `good-try` is written in TypeScript and the types are in a way to reduce developer errors. For example, I sometimes incorrectly type `goodTry(readFileSync())`, but the types don't allow this.
15+
- `good-try` has a friend — [`settle-it`](https://github.com/astoilkov/settle-it).
16+
817
## Install
918

1019
```bash

0 commit comments

Comments
 (0)