getch
Fetching with monitoring and automatic retry
Last updated 6 months ago by simongregory .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install getch 
SYNC missed versions from official npm registry.

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');

Current Tags

  • 0.11.1                                ...           latest (6 months ago)

15 Versions

  • 0.11.1                                ...           6 months ago
  • 0.11.0                                ...           6 months ago
  • 0.10.2                                ...           6 months ago
  • 0.10.1                                ...           6 months ago
  • 0.10.0                                ...           6 months ago
  • 0.9.0                                ...           6 months ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 1
Last Month 4
Dependencies (3)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |