0.11.1 • Published 4 years ago

getch v0.11.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

getch

Unix Build Status Windows Build Status Coverage Status

Fetch wrapped and using GET with access to text, json, and binary data directly. Raises errors if a response is not a 200. Performs retries using a simple exponential backoff strategy when encountering 500s, and can send monitoring data when configured.

Adaptable using plugins to pre or post process requests and responses.

Install

yarn add getch

Usage

import getch from 'getch';

const text = await getch.text('https://a.text/endpoint');
const json = await getch.json('https://a.json/endpoint');
0.11.0

4 years ago

0.11.1

4 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago