1.0.9 • Published 6 years ago

async-fetch-client v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Async Fetch Client

Simple wrapper around isomorphic-fetch to help make API calls easier. This is a function I end up reusing in different projects, mostly tailored to my own use.

Install

npm install --save async-fetch-client

Usage

import fetchClient from 'async-fetch-client';

const { error, json } = await fetchClient('/api/users', { method: 'GET' });
if (error) {
  // handle error
}

// continue to use `json` however you want.
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago