0.1.1 • Published 1 year ago
hypercharge v0.1.1
Implementation
import hyperFetch from 'hyperCharge';
// Example usage:
const apiUrl = 'https://api.example.com/data';
const requestData = { key: 'value' };
// Making a GET API call
const response = await makeApiCall(apiUrl);
console.log(response);
// Making a POST API call
const postResponse = await makeApiCall(apiUrl, 'POST', requestData);
console.log(postResponse);