How to Install node-fetch in Ubuntu 18.04



Install node-fetch by entering the following commands in the terminal:

sudo apt update
sudo apt install node-fetch

Description:

light-weight module that brings window.fetch to node.js

Instead of implementing XMLHttpRequest in Node.js to run browser-specific Fetch polyfill, why not go from native http to Fetch API directly? Hence node-fetch, minimal code for a window.fetch compatible API on Node.js runtime. . Node.js is an event-based server-side JavaScript engine.

Homepage: https://github.com/bitinn/node-fetch

Version: 1.7.3-1

Section: universe/javascript