• Version 4.0.0
  • Published
  • 88.1 kB
  • 1 dependency
  • MIT license


npm i cross-fetch
yarn add cross-fetch
pnpm add cross-fetch


Universal WHATWG Fetch API for Node, Browsers and React Native



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.


            To add a badge like this badgeto your package's README, use the codes available below.

            You may also use to create a custom badge linking to

            • Markdown
            • HTML
              <a href=""><img src="" alt=""></a>