Prerequisites
- You must have Python installed, and available at the
python
command on Windows, and python3
on Windows & Linux. - If
scapy
, the dependent python library isn't successfully installed when you install the peacap
dependency, you can optionally install scapy
using pip.
Installation
Simply install using your favourite Node.js package manager.
yarn add peacap
npm install peacap
Usage
Usage is simple, simply instantiate the PacketSniffer
constructor, and observe.
import { PacketSniffer } from "peacap";
const sniffer = new PacketSniffer();
sniffer.on("packet", console.log);
Contribute
Feel free to contribute to the repository. Pull requests and issues with feature requests are super welcome!