1.1.0 • Published 7 years ago

fetch-timer v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Fetch with Timeout

This is s simple wrapper for the regular fetch function that allows it to use timeout in miliseconds.

You may use any parameter that you will normally use with the regular fetch

Installation

npm install fetch-timer

Usage

const Fetch = require('fetch-timer');

Fetch('https://jsonplaceholder.typicode.com/posts', { timeout: 100 })
    .then(res => res.json())
	.then(res => console.log(res))	
    .catch((e)=> console.log(e))
1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago