yareq
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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 }
});

Package Sidebar

Install

npm i yareq

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

57.8 kB

Total Files

18

Last publish

Collaborators

  • wdfang