axol
v1.1.0
Published
API request Booster
Downloads
18
Maintainers
Readme
- Latest Version: 1.1.0
Get Started
- Type
npm i axol
to install in Current Directory - Create A Const In Your JavaScript File, for example:
const AXOL = require('axol')
- After That Fetch You API via another const, for example:
const axolClient = new AxolClient({apiBaseUrl: 'https://jsonplaceholder.typicode.com', // Base URL for your APIcacheDuration: 1000 * 60 * 2, // Cache duration in milliseconds (default: 5 minutes)maxRetries: 2 // Maximum number of retries for failed requests (default: 3)});
- for API URL, please check the API WEBSITE