movelkak.blogg.se

Npm axios
Npm axios








npm axios

So a beautiful thing about Node.js is that this runtime environment has packages (or libraries). If you haven’t encountered Node.js thus far in your journey, it is only a matter of time. But for a quick rundown, Node.js is a runtime environment that allows us to use JavaScript to create applications that can exist outside of web browsers.

npm axios

If you don’t know what Node.js is, check out An Introduction to Node.js. So, now we’re going to build on this idea by adding in a new key player: Node.js. We can use fetch to collect weather data from Weather APIs. We can use data collected by third parties to make our own products more useful for our users.įor example, we can use fetch to work with PayPal or Stripe for payment processing.

npm axios

This promise-based API allowed us to asynchronously make HTTP requests to fetch resources available on the internet.Īnd by making such requests, we can enhance our own websites and applications. A few articles ago, we learned how to Get Started with JavaScript’s native Fetch API.










Npm axios