🔨 Sniff HTTP requests making by XHR in the browser or HTTP module in Node.js
https://piecioshka.github.io/xhr-sniffer/demo/browser/
- ✅ Display logs of
XMLHttpRequests
in DevTools Console - ✅ Display logs of
http
module inNode.js
- ⛔️ Sniffing
Fetch API
npm install xhr-sniffer
const xhrSniffer = require('xhr-sniffer');
xhrSniffer.install();
// do XHR requests
xhrSniffer.uninstall();
Attach files in <head>
tag:
<script src="xhr-sniffer/src/common.js"></script>
<script src="xhr-sniffer/src/browser.js"></script>
Next, make some XMLHttpRequests requests.
npm test
npm run coverage
The MIT License @ 2018