DEV Community

Is fetch too low-level? Do you have a favorite wrapper?

Pacharapol Withayasakpunt on December 02, 2020

Furthermore, I am not sure about node-fetch or isomorphic-fetch, on Node.js's side. What is surprising about fetch, is that it does not "raise-for...
Collapse
 
rolfstreefkerk profile image
Rolf Streefkerk

Request is what I use, but that has been deprecated.

The Request team recommends either one from this list
github.com/request/request/issues/...

Collapse
 
tomdohnal profile image
Tom Dohnal

axios library is a common choice. It's a very small library for making requests. I find it's API a bit friendlier that native fetch

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I actually resorted to ky. I would probably also use ky-universal or got, if I need to.

Collapse
 
natelindev profile image
Nathaniel

fetch is just fine, I would prefer 'cross-fetch' for isomorphic use of fetch between frontend and node.js