xhr-sniffer
Sniff HTTP requests making by XHR in browser or http module in Node.js
Demo 🎉
https://piecioshka.github.io/xhr-sniffer/demo/browser/
Features
- ✅ Display logs of
XMLHttpRequests
in DevTools Console - ✅ Display logs of
http
module inNode.js
- ⛔️ Sniffing
Fetch API
Install
npm install xhr-sniffer
Usage
Node.js
Sniff requests in const xhrSniffer = ; xhrSniffer; // do XHR requests xhrSniffer;
browser
Sniff requests in Attach files in <head>
tag:
Next, make some XMLHttpRequests requests.
Unit tests
npm test
Code coverage
npm run coverage
License
The MIT License @ 2018