Skip to content

coveooss/fetch-undici-polyfill

Repository files navigation

fetch-undici-polyfill

Polyfill fetch with undici implementation on NodeJS.

Usage

Install: npm i fetch-undici-polyfill

Code:

// ESM import
import "fetch-undici-polyfill";
// CJS require
require("fetch-undici-polyfill");

fetch("https://nyan.cat");

Proxy configuration

Supports the environment variable HTTPS_PROXY and https_proxy. Read more about it here.