2 points | by Brysonbw 3 days ago
4 comments
Great, that will definitely simplify some of the coding. But if it could provide more simplified functions, it might be more attractive.
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?
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....
I’m still confused why you would use this? Syntactic boilerplate? Saves keystrokes?
Great, that will definitely simplify some of the coding. But if it could provide more simplified functions, it might be more attractive.
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?
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....
I’m still confused why you would use this? Syntactic boilerplate? Saves keystrokes?