{"library":"request-spy","type":"library","category":null,"description":"request-spy is a Node.js utility designed to intercept and report on all outgoing HTTP/HTTPS requests made within a Node.js application. It operates by patching Node.js's internal request mechanisms, allowing users to log errors, monitor hostnames, paths, methods, HTTP status codes, and the request duration. The package is currently at version 0.0.10. Given its last known update around 2017 (indicated by the README copyright), it appears to be either in a long-term maintenance state or, more likely, abandoned, suggesting an infrequent or non-existent release cadence. Its primary differentiator is its simple, global interception mechanism, which can be useful for debugging or basic metrics collection without modifying individual request calls. However, its age may present significant compatibility challenges with newer Node.js runtime versions, especially concerning modern module systems like ESM or the `fetch` API.","language":"javascript","status":"abandoned","version":"0.0.10","tags":["javascript"],"install":[{"cmd":"npm install request-spy","imports":["const requestSpy = require('request-spy');","const requestSpy = require('request-spy');\nrequestSpy.spy((error, requestData) => { /* ... */ });","const requestSpy = require('request-spy');\nrequestSpy.restore();"]},{"cmd":"yarn add request-spy","imports":[]},{"cmd":"pnpm add request-spy","imports":[]}],"homepage":null,"github":"https://github.com/daniel-lundin/request-spy","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/request-spy","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/request-spy/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}