Why doesn't fetch in Node.js work out of the box? What's the best alternative? or How do I use fetch

14 Replies, 851 Views

Oh wow, undici seems to be the crowd favorite! Gonna try that first.

Axios looks solid too, but I’m just making simple API calls, so undici might be perfect.

Thanks y’all—kinda wild how something as basic as fetch in nodejs needs a whole package, but hey, whatever works.

(Also, TIL why Node didn’t include it. Makes sense now!)

Messages In This Thread



Users browsing this thread: 1 Guest(s)