@ayakashi/request
TypeScript icon, indicating that this package has built-in type declarations

2.88.7 • Public • Published

Request - Simplified HTTP client

Fork of request

Includes the following:

  • Adds Brotli support
  • Bundles request-promise-native and uses Promises by default
  • Bundles updated typescript definitions that use Promises
  • Updates/removes some packages that have security vulnerabilities

Installing

npm install --save @ayakashi/request

Using Brotli

Just pass gzipOrBrotli: true in the options instead of just gzip: true

const request = require("@ayakashi/request");

const body = await request.get('https://www.google.com', {
    gzipOrBrotli: true
});

Using the callback-based interface

Require @ayakashi/request/core instead of @ayakashi/request.
Brotli is available here as well.

const request = require("@ayakashi/request/core");

request.get('https://www.google.com', {gzipOrBrotli: true}, function(err, resp, body) {
    console.log(body);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.88.7
    1
    • latest

Version History

Package Sidebar

Install

npm i @ayakashi/request

Weekly Downloads

1

Version

2.88.7

License

Apache-2.0

Unpacked Size

459 kB

Total Files

114

Last publish

Collaborators

  • zisismaras