Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

api-client License: GPL v3 npm version

A simple API client using fetch (Node.js / Web).

Prerequisites

Installation

ℹ️ This is a pure ESM module.

Run yarn add @ffflorian/api-client or npm i @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);
}