You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

request-extension-debug

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-extension-debug

Request extension for colored debug output, inspired by request-debug

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

request-extension-debug

Standalone extension to request with the same functionality as request-debug, but with the option for colored output and the ability to enable debug output on a per-request basis, instead of globally.

Install

$ npm install --save request-extension-debug

Usage

require('request-extension-debug')({ color: true })(require('request'));

// can now use the 'debug' property in a call to request, e.g.

require('request')({
  method: 'GET',
  url: 'http://google.com',
  debug: true
}, function (err, resp, body) {});

// will output colored debugging output pertaining to the request and response

License

MIT.

Author

Raymond Pulver

Keywords

request

FAQs

Package last updated on 13 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts