Show HN: Fetchet – A compact, promise-based, HTTP fetch wrapper (github.com)

There are plenty of HTTP clients out there - Axios being one of the most popular - but I wanted something minimal and closer to the native fetch API.

I originally wrote a small fetch wrapper for a side project. Rather than copying and pasting it into other projects, I decided to expand on it and publish it as a public package.

Feel free to star the repo, and more importantly, contribute.

SilentTiger 12 hours ago

Great, that will definitely simplify some of the coding. But if it could provide more simplified functions, it might be more attractive.

rco8786 2 days ago

You should lead with some deets about why you would use this vs just using `fetch` directly.

``` await fetchet('https://dummyjson.com/posts').then((response) => console.log(response)) ```

This is the first code sample and if I'm not mistaken you could s/fetchet/fetch and it would do the exact same thing?

Brysonbw 2 days ago

Thanks for the feedback, and correct.

'Additions to fetch()` section in repo README.md would answer why someone would use the lib vs fetch: https://github.com/brysonbw/fetchet?tab=readme-ov-file#addti....

LE_BAGEL_DOGUE 2 days ago

I’m still confused why you would use this? Syntactic boilerplate? Saves keystrokes?