cross-fetch
npmv4.1.0TypeScriptUniversal WHATWG Fetch API for Node, Browsers and React Native
Overview
cross-fetch is an npm package that universal WHATWG Fetch API for Node, Browsers and React Native. The latest version is 4.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need universal WHATWG Fetch API for Node, Browsers and React Native and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (32 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of cross-fetch.
Dependencies
Runtime (1)
Dev (31)
Used by
Popular packages that depend on cross-fetch.
Alternatives to cross-fetch
Promise based HTTP client for the browser and node.js
A light-weight module that brings Fetch API to node.js
An HTTP/1.1 client, written from scratch for Node.js
Mutex locks for async functions
Run multiple promise-returning & async functions with limited concurrency
Get the first fulfilled promise that satisfies the provided testing function
Low-level HTTP/HTTPS/XHR/fetch request interception library.
Open stuff like URLs, files, executables. Cross-platform.
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
HTTP and HTTPS modules that follow redirects.
HTML5 `FormData` for Browsers and Node.
A Promise-based interface into processes created by child_process.spawn
Frequently installed together
TypeScript definitions for node
yargs the modern, pirate-themed, successor to optimist.
Express style path to RegExp utility
HTTP server cookie parsing and serialization
HTTP status utility
An HTTP/1.1 client, written from scratch for Node.js
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
Runtime for Regenerator-compiled generator and async functions.
A high-level API to automate web browsers
Bare bones Promises/A+ implementation
Seamless REST/GraphQL API mocking library for browser and Node.js.
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Version history
| Version | Published | License |
|---|---|---|
| 3.2.0 | 1 year ago | MIT |
| 4.1.0latest | 1 year ago | MIT |
| 4.0.0 | 3 years ago | MIT |
| 4.0.0-alpha.13 | 3 years ago | MIT |
| 3.1.8 | 3 years ago | MIT |
| 4.0.0-alpha.10 | 3 years ago | MIT |
| 3.1.7 | 3 years ago | MIT |
| 3.1.7-test.0 | 3 years ago | MIT |
| 4.0.0-alpha.5 | 3 years ago | MIT |
| 4.0.0-alpha.4 | 3 years ago | MIT |
| 3.1.6 | 3 years ago | MIT |
| 2.2.6 | 4 years ago | MIT |
| 3.1.5 | 4 years ago | MIT |
| 3.2.0-alpha.2 | 4 years ago | MIT |
| 3.2.0-alpha.1 | 4 years ago | MIT |
| 3.2.0-alpha.0 | 4 years ago | MIT |
| 2.2.5 | 5 years ago | MIT |
| 2.2.4 | 5 years ago | MIT |
| 3.1.4 | 5 years ago | MIT |
| 3.1.4-alpha.0 | 5 years ago | MIT |
Maintainers
Frequently asked questions
How do I install cross-fetch?
Run `npm install cross-fetch` to add cross-fetch to your npm project.
What license is cross-fetch released under?
cross-fetch is distributed under the MIT license.
How popular is cross-fetch?
cross-fetch has approximately 0 downloads per week and 2 known dependent packages.