SimpleDDoS is a tiny Denial Of Service module with multi-threading support for pentesting local hosted servers.
Don't run it on WSL! It has some network limitations and may break your device! Better test it on VM or real OS
yarn add simple-ddos
const ddos = require('simple-ddos')
// Launches 10 threads of sending 100 requests every 1.5s
ddos(10, 'http://localhost', 100, 1500)