alphagov / learningtime-hh-sem1-gov-location-service

Early talent assigned learning time, Semester 1 project for Harley Harris
1 stars 1 forks source link

Assess options for making HTTP requests to APIs using Node.js #15

Open harley-harris opened 1 year ago

huwd commented 1 year ago

If this is still a consideration, and you are using node 18+ I'd just consider using the built in fetch. Pros, no dependencies Cons, many blog posts will discuss axios as it used to be the champion tool in this space.

But generally speaking if we can use the standard library and not require a dependency that's a good move. Keeps your installs quick and project sizes small, and lowers the risks that come with using "other people's code" to an extent.

Fetch has been around in recent versions and I think I've seen you using ti already. So I'd just stick with that one!

harley-harris commented 1 year ago

Decided to use fetch, forgot to update the card :)