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

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)

            Peer Dependencies (0)

            No peer dependencies.

            Badge

            To add a badge like this onejsDocs.io badgeto 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>