0.1.1 • Published 2 years ago

@plantae/plugin-timeout v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@plantae/plugin-timeout

Timeout plugin for Plantae.

Installation

# npm
npm install @plantae/plugin-timeout

# yarn
yarn add @plantae/plugin-timeout

Usage

import timeoutPlugin from "@plantae/plugin-timeout";

const fetchWithTimeout = createFetch({
  client: fetch,
  plugins: [timeoutPlugin(5000)], // timeout after 5 seconds
});
0.1.1

2 years ago

0.1.0

2 years ago

0.0.1-alpha.10

2 years ago