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