Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clamscan

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clamscan - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

13

examples/stream.js

@@ -5,3 +5,3 @@ const { PassThrough } = require('stream');

const fakeVirusUrl = 'https://secure.eicar.org/eicar_com.txt';
const fakeVirusUrl = 'https://www.eicar.org/download/eicar-com-2/?wpdmdl=8842&refresh=661ef9d576b211713306069';
// const normalFileUrl = 'https://raw.githubusercontent.com/kylefarris/clamscan/sockets/README.md';

@@ -23,11 +23,14 @@ const testUrl = fakeVirusUrl;

port: 3310,
socket: '/var/run/clamd.scan/clamd.sock',
//socket: '/var/run/clamd.scan/clamd.sock',
},
});
// Fetch fake Eicar virus file and pipe it through to our scan screeam
const passthrough = new PassThrough();
const source = axios.get(testUrl);
axios.get(
testUrl, { responseType: 'stream' }
).then((response) => {
response.data.pipe(passthrough);
});
// Fetch fake Eicar virus file and pipe it through to our scan screeam
source.pipe(passthrough);

@@ -34,0 +37,0 @@ try {

{
"name": "clamscan",
"version": "2.2.1",
"version": "2.2.2",
"author": "Kyle Farris <kyle.farris@infotechinc.com> (https://infotechinc.com)",

@@ -5,0 +5,0 @@ "description": "Use Node JS to scan files on your server with ClamAV's clamscan/clamdscan binary or via TCP to a remote server or local UNIX Domain socket. This is especially useful for scanning uploaded files provided by un-trusted sources.",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc