1.0.7 ā€¢ Published 2 months ago

xhr-sniffer v1.0.7

Weekly downloads
6
License
MIT
Repository
github
Last release
2 months ago

xhr-sniffer

node version npm version downloads count size license github-ci

šŸ”Ø 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 XMLHttpRequests in DevTools Console
  • āœ… Display logs of http module in Node.js
  • ā›”ļø Sniffing Fetch API

Install

npm install xhr-sniffer

Usage

Sniff 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.

Unit tests

npm test

Code coverage

npm run coverage

License

The MIT License @ 2018

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

3 months ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago