@ffflorian/api-client
v2.1.8
Published
A simple API client using fetch
Readme
api-client

A simple API client using fetch (Node.js / Web).
Prerequisites
Installation
ℹ️ This is a pure ESM module.
Run yarn global add @ffflorian/api-client or npm i -g @ffflorian/api-client.
Usage
import {APIClient} from '@ffflorian/api-client';
const apiClient = new APIClient();
try {
const data = await apiClient.get('https://example.com');
} catch (error) {
console.error(error);
}