0.0.11 • Published 3 years ago

@balena/fetch v0.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

@balena/fetch

This module implements fetch with the happy eyeballs algorithm.

It is also browser/node safe.

This is meant to replace all naked calls to http.request, fetch, node-fetch, @balena/request, etc.

This was created for Balena use, but it would probably be a good idea if everyone used it.

Installation

npm i --save @balena/fetch

Usage

import fetch from '@balena/fetch';

const resp = await fetch('https://api.balena-cloud.com/ping');
console.log(await resp.text()) // <= OK
0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago