
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
log-that-http
Advanced tools
Logs outgoing http requests and responses from Node.js.
console.log
npm install log-that-http axios node-fetch
node --require log-that-http -e "const axios=require('axios').default; axios.get('http://www.google.com');"
LOG_THAT_HTTP_HEADERS=true node --require log-that-http -e "const fetch=require('node-fetch').default; fetch('http://www.github.com');"
node --require log-that-http foo.js
or use require('log-that-http')
from within your script.
Use the following environment variables to add more info:
LOG_THAT_HTTP_HEADERS=true
to log all request and response headers.LOG_THAT_HTTP_BODY=true
to log request bodies.log-that-http
is compatible with the popular request libraries and the built-in http
and https
-modules.
http.get()
and http.request()
https.get()
and https.request()
Compatibility with Node.js versions from 8 to 11 is tested with the help of npx
& node.
Missing something? Please file an issue.
FAQs
Logs outgoing http requests and responses.
The npm package log-that-http receives a total of 1,147 weekly downloads. As such, log-that-http popularity was classified as popular.
We found that log-that-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.