sync-request

  • Version 6.1.0
  • Published
  • 29.5 kB
  • 3 dependencies
  • MIT license

Install

npm i sync-request
yarn add sync-request
pnpm add sync-request

Overview

Make synchronous web requests

Index

Functions

Classes

Interfaces

Functions

function request

request: (method: any, url: string | URL, options?: Options) => any;

    Classes

    class FormData

    class FormData {}

      method append

      append: (key: string, value: string | Blob | Buffer, fileName?: string) => void;

        Interfaces

        interface Options

        interface Options extends BaseOptions {}

          property form

          form?: FormData;

            Package Files (3)

            Dependencies (3)

            Dev Dependencies (8)

            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/sync-request.

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