ESniffer 🔬
Modern network analyze tool. Alternatives to Hoxy, Charles, etc.
Install
npm i esnifferyarn add esniffer
Example
// index.js;; // Required if you want to monitor over HTTPSconst key = fs;const cert = fs; const proxy = ESniffer;proxy; proxy;proxy;proxy;proxy;
Start and configure the proxy server
node index.js
In your mac, from System Preferences > Network > Advanced... > Proxies tab
, configure the proxy as follows:
Protocol | Host | Port |
---|---|---|
Web Proxy (HTTP) | 127.0.0.1 |
8080 |
Secure Web Proxy (HTTPS) | 127.0.0.1 |
8080 |
Finally, don't forget OK
and Apply
.
Events
name | description | type |
---|---|---|
info |
Logs of the proxy server | string |
error |
Errors occurring on the proxy server | Error |
request |
Request object to the actual server | http.IncomingMessage |
response |
Response object to the actual server | http.IncomingMessage |