npm.io
0.1.1 • Published 3 years ago

hypercharge

Licence
ISC
Version
0.1.1
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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);