Fetch API in Node.js
Fetch() support is now available in Node.js as an experimental core feature. Fetch() is a well-liked cross-platform HTTP client API that functions in browsers and Web/Service Workers. Many people who want to build cross-platform HTTP request code and are familiar with the fetch() API structure and call patterns have long demanded the addition of fetch() support. The node-fetch module was created specifically to backfill this feature in Node.js, which is why it exists.