yareq
v1.2.0
Published
Yet another request for Node.js
Downloads
29
Maintainers
Readme
yareq - Yet another request for node.js
Install
$ npm install yareq
Usage
const { request } = require('yareq');
(async function(proxy) {
const response = await request('https://www.google.com/', { proxy });
console.log(response.statusCode); // 200
})('socks5://localhost:9050');
Basic authorisation
request('http://example.com/api/status', {
authorisation: { type: 'basic', username, password }
});