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

clamscan

Package Overview
Dependencies
Maintainers
1
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 0.2.0 to 0.2.1

10

index.js

@@ -166,5 +166,9 @@ /*!

if(err || stderr) {
if(self.settings.debug_mode)
console.log(err);
callback(err, file, null);
if(err.code === 1) {
callback(null, file, true);
} else {
if(self.settings.debug_mode)
console.log(err);
callback(err, file, null);
}
} else {

@@ -171,0 +175,0 @@ var result = stdout.trim();

{
"name": "clamscan",
"version": "0.2.0",
"version": "0.2.1",
"author": "Kyle Farris <kfarris@chomponllc.com> (http://chomponllc.com)",
"description": "Use Node JS to scan files on your server with ClamAV's clamscan binary. This is especially useful for scanning uploaded files provided by un-trusted sources.",
"main": "index.js",
"contributors": [],
"contributors": [
"dietervds"
],
"scripts": {

@@ -9,0 +11,0 @@ "test": "echo 'Error: no test specified' && exit 1"

@@ -7,2 +7,8 @@ ## NodeJS Clamscan Virus Scanning Utility

## Changelog
### 0.2.1
BUG FIX: ClamAV returns an exit code 1 when it detects a virus but `exec` was interpreting that response as an error. Checking the response with type-sensitive equivalence resolves this bug.
## How to Install

@@ -178,2 +184,2 @@

Got a missing feature you'd like to use? Found a bug? Go ahead and fork this repo, build the feature and issue a pull request.
Got a missing feature you'd like to use? Found a bug? Go ahead and fork this repo, build the feature and issue a pull request.
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