0.1.8 • Published 8 months ago

fetch-helper-x v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Fetch Helper

CI

This package provides some useful utilities and functions for using the Fetch API.

Usage

import { timeoutFetch } from "fetch-helper-x";

const response = await timeoutFetch("https://google.com", { requestTimeout: 10000, idleTimeout: 1000 });

console.log(await response.text());
// if you want to cancel the body, use `await response.cancelBody()` instead; otherwise, the program will hang because the connection and timer are still active

Usage for Browsers

Source

Demo Page

License

MIT

0.1.8

8 months ago

0.1.7

8 months ago

0.1.6

8 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago