xhr-sniffer
v1.0.8
Published
🔨 Sniff HTTP requests making by XHR in the browser or HTTP module in Node.js
Maintainers
Readme
xhr-sniffer
🔨 Sniff HTTP requests making by XHR in the browser or HTTP module in Node.js
Preview 🎉
https://piecioshka.github.io/xhr-sniffer/demo/browser/
Features
- ✅ Display logs of
XMLHttpRequestsin DevTools Console - ✅ Display logs of
httpmodule inNode.js - ⛔️ Sniffing
Fetch API
Usage
Installation:
npm install xhr-snifferSniff requests in Node.js
const xhrSniffer = require('xhr-sniffer');
xhrSniffer.install();
// do XHR requests
xhrSniffer.uninstall();Sniff requests in browser
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.
License
The MIT License @ 2018
