asreq
v1.0.1
Published
Async/Await wrapper for Request
Downloads
0
Readme
asreq
An async/await wrapper for Request
Its use is insanely simple. Really
import asreq from "asreq";
async function whatever() {
const page = await asreq("https://github.com");
console.log(page.body); // the homepage of GitHub
}
whatever();
In request, you can pass options in the request(options, callback)
syntax. You can pass the options into asreq in the await asreq(options)
syntax