UNPKG

totalvirus-api

Version:

Node.js wrapper for VirusTotal API. Scan files, URLs, and fetch malware analysis reports.

12 lines (9 loc) 376 B
const virusScanner = require('./api/virustotal'); module.exports = function (apiKey) { if (!apiKey) throw new Error("API key is required"); return { scanFile: (filePath) => virusScanner.scanFile(apiKey, filePath), scanUrl: (url) => virusScanner.scanUrl(apiKey, url), getReport: (id) => virusScanner.getReport(apiKey, id) }; };