fetch-axios-lite
v0.0.1
Published
Lightweight axios-like HTTP client built on fetch
Readme
fetch-axios-lite
Axios-like HTTP client built on top of fetch.
Features
- Interceptors
- Typed responses
- Timeout support
- Auth hooks
- SSR-safe
Usage
import { createHttpClient } from 'fetch-axios-lite';
const client = createHttpClient({
baseUrl: 'https://api.example.com'
});
const data = await client.api.get('/users');
---