asreq

Async/Await wrapper for Request

Usage no npm install needed!

<script type="module">
  import asreq from 'https://cdn.skypack.dev/asreq';
</script>

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