has-malware Detects whether your system has malware. Usage Install has-malware using npm, then: const hasMalware = require('has-malware'); if (hasMalware()) { console.log("Uh oh..."); }