npm.io
1.0.1 • Published 10 years ago

asreq

Licence
GPL-2.0
Version
1.0.1
Deps
2
Vulns
1
Weekly
0

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

Keywords