joshbDev / a-request

installable javascript module to make API calls using async/await

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aRequest

##WORK IN PROGRESS installable javascript module to make API calls using async/await.

Though there are many libraries out there that make API requests, it seems like only Axios relies on Promises.

GET request

import aRequest from 'a-request';
async function something() {
  const response = await aRequest.get('https://api.example.com/api?api=yes');
  **continue on**
}

About

installable javascript module to make API calls using async/await

License:MIT License


Languages

Language:JavaScript 100.0%