UNPKG

cd-ddos-hook

Version:

Send/Receiver For DDoS Detection

21 lines (14 loc) 421 B
# CerberusDDoS Detection Hook This is an integration for Cerberus Development webhook API. ## Example Non-Custom port and path ```js const { DDoSHook } = require('cd-ddos-hook'); const checker = new DDoSHook('/receiver', 4000); checker.start(() => { console.log('Detection Hook Started...'); }); checker.on("api", (resp) => { console.log(resp); // Console logs the API response. }); ```