cos-request is a fork of the popular (now deprecated) request package, providing a simplified HTTP client for Node.js. Version 1.1.0 supports Node >= 8 and offers streaming, Promises, authentication, OAuth, proxying, and TLS/SSL. It aims to be the simplest way to make HTTP calls, with a callback-based API similar to the original request. The package is a drop-in replacement but is no longer actively developed; users are encouraged to migrate to modern alternatives like node-fetch or undici. Release cadence is sparse; last update is unknown.
npm install cos-requestVerified import paths — ran on the pinned version, not inferred.
Shows basic HTTP GET request with callback. Note the use of 'cos-request' package name.
Migrate to modern HTTP clients like node-fetch (ESM), got, or undici.
Use 'const request = require('cos-request');'Ensure correct parameter order and types.
npm install cos-request then require('cos-request').Use CommonJS require: const request = require('cos-request');No dependency data recorded yet.