Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 692 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 692 Bytes

image

NodeJS Native Binding for the nDPI Deep Packet Inspection Library

Usage

const ndpi = require('node-ndpi');
Initialize
ndpi.init();
Set Callback
var myCallback = function(id,p){ console.log(id) };
ndpi.addProtocolHandler(myCallback); 
Push Packets
ndpi.processPacket(header, packet.buf);
Close
ndpi.finish();

Status

  • In Development!
  • Testers & Contributors Welcome
(C) 2018 QXIP BV, LICENSED UNDER GPLv3