popsicle

  • Version 12.1.2
  • Published
  • 23 kB
  • 8 dependencies
  • MIT license

Install

npm i popsicle
yarn add popsicle
pnpm add popsicle

Overview

Advanced HTTP requests in node.js and browsers

Index

Variables

Functions

Variables

variable middleware

const middleware: any;

    Functions

    function fetch

    fetch: (
    ...args: Parameters<typeof nodeFetch> & Parameters<typeof browserFetch>
    ) => Promise<XhrResponse | HttpResponse>;

      function toFetch

      toFetch: <T extends CommonRequest, U extends CommonResponse, A extends any[]>(
      middleware: Composed<T, U>,
      Request: new (...args: A) => T
      ) => (...args: A) => Promise<U>;
      • Create a fetch like interface from middleware stack.

      Package Files (2)

      Dependencies (8)

      Dev Dependencies (7)

      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/popsicle.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/popsicle)
      • HTML
        <a href="https://www.jsdocs.io/package/popsicle"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>