"Why doesn't fetch in nodejs work out of the box? What's the best alternative?"
Hey folks,
kinda weird that fetch in nodejs isn't just built-in, right? Like, it's everywhere in browsers but nope, not in Node by default.
So what's the move these days? I heard node-fetch was the go-to but it's deprecated now...
Is it just better to use axios? Or is there some other lightweight package?
Also, why didn't Node just include fetch in nodejs from the start? Feels like a missed opportunity lol.
Lemme know what y'all are using!
---
*(or if you prefer a shorter version...)*
"Simplest way to use fetch in nodejs?"
Trying to use fetch in nodejs but hitting a wall.
What's the easiest fix? Heard mixed things about node-fetch, undici, axios...
Just wanna make simple requests without overcomplicating it.
Tips? 😅
Hey folks,
kinda weird that fetch in nodejs isn't just built-in, right? Like, it's everywhere in browsers but nope, not in Node by default.
So what's the move these days? I heard node-fetch was the go-to but it's deprecated now...
Is it just better to use axios? Or is there some other lightweight package?
Also, why didn't Node just include fetch in nodejs from the start? Feels like a missed opportunity lol.
Lemme know what y'all are using!
---
*(or if you prefer a shorter version...)*
"Simplest way to use fetch in nodejs?"
Trying to use fetch in nodejs but hitting a wall.
What's the easiest fix? Heard mixed things about node-fetch, undici, axios...
Just wanna make simple requests without overcomplicating it.
Tips? 😅
