There is this NPM lib: https://www.npmjs.com/package/clamscan
It is being used like this according to the docs:
const NodeClam = require('clamscan');
const ClamScan = new NodeClam().init(options);
ClamScan.then(async clamscan => {
const {isInfected, file, viruses} = await clamscan.isInfected('./some/file');
});
how are you supposed to test this? I have never encountered a constructor being returned from a require.