cross-fetch
- Version 4.0.0
- Published
- 88.1 kB
- 1 dependency
- MIT license
Install
npm i cross-fetch
yarn add cross-fetch
pnpm add cross-fetch
Overview
Universal WHATWG Fetch API for Node, Browsers and React Native
Index
Namespaces
Namespaces
namespace cross-fetch
module 'cross-fetch' {}
variable fetch
const fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
variable Headers
const Headers: { new (init?: HeadersInit): Headers; prototype: Headers };
variable Request
const Request: { new (input: RequestInfo | URL, init?: RequestInit): Request; prototype: Request;};
variable Response
const Response: { new (body?: BodyInit, init?: ResponseInit): Response; prototype: Response; error(): Response; redirect(url: string | URL, status?: number): Response;};
Package Files (1)
Dependencies (1)
Dev Dependencies (30)
- @commitlint/cli
- @commitlint/config-conventional
- @rollup/plugin-terser
- @types/chai
- @types/mocha
- @types/node
- body-parser
- chai
- codecov
- commitizen
- cz-conventional-changelog
- express
- husky
- lint-staged
- mocha
- mocha-headless-chrome
- nock
- nyc
- rimraf
- rollup
- rollup-plugin-copy
- semver
- serve-index
- standard
- standard-version
- typescript
- webpack
- webpack-cli
- whatwg-fetch
- yargs
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/cross-fetch
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/cross-fetch)
- HTML<a href="https://www.jsdocs.io/package/cross-fetch"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3267 ms. - Missing or incorrect documentation? Open an issue for this package.