Request (deprecated): Detailed Overview & Metrics

v2.88.2(about 4 years ago)

This package is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142Types definitions are provided via a separate npm package: @types/requestNumber of direct dependencies: 20Monthly npm downloads

Request is a simplified HTTP client for making requests in Node.js. It provides an easy-to-use interface for sending HTTP requests, handling cookies, following redirects, and managing authentication. Request supports both HTTP and HTTPS protocols and offers features like streaming, piping, and multipart/form-data uploads. It is widely used for making API calls, fetching data from servers, and interacting with web services.

In comparison to other HTTP client libraries like Axios or node-fetch, Request is considered more straightforward and beginner-friendly. However, Request has been deprecated in favor of modern alternatives due to security vulnerabilities and lack of active maintenance. It is recommended to switch to Axios or node-fetch for better security and ongoing support.

Alternatives:
axios+
node-fetch+
got+
superagent+
ky+
bent+
isomorphic-fetch+
make-fetch-happen+
phin+
needle+

Tags: node.jshttpclientrequestapi