Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-fetch-commonjs

proteriax2.5mMIT3.3.2TypeScript support: included

A light-weight module that brings Fetch API to node.js

fetch, http, promise, request, curl, wget, xhr, whatwg

readme

node-fetch-commonjs

node-fetch but in CommonJS format. This module is built from node-fetch directly.

Version check

Latest upstream version Current upstream version

Differences

  1. You can require("node-fetch-commonjs") directly.
  2. You will not see the ExperimentalWarning: stream/web is an experimental feature warning.
  3. It works on older Node.js versions that don’t support requiring built-in modules with a node: prefix.

Build

yarn
./build.js # Output to `lib` folder

Install

yarn add node-fetch-commonjs