Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "clamscan", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Kyle Farris <kfarris@chomponllc.com> (http://chomponllc.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.", |
@@ -20,15 +20,10 @@ [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![Node.js Version][node-image]][node-url] [![Build Status][travis-image]][travis-url] | ||
- [Dependencies](#dependencies) | ||
- [Local Binary Method](#to-use-local-binary-method-of-scanning) | ||
- [TCP/Domain Socket Method](#to-use-clamav-using-tcp-sockets) | ||
- [How to Install](#how-to-install) | ||
- [License Info](#license-info) | ||
- [Getting Started](#getting-started) | ||
- [A note about using this module via sockets or TCP](#a-note-about-using-this-module-via-sockets-or-tcp) | ||
- [Basic Usage Example](#basic-usage-example) | ||
- [API](#api) | ||
- [get_version](#get_version) | ||
@@ -40,3 +35,2 @@ - [is_infected (alias: scan_file)](#is_infected) | ||
- [passthrough](#passthrough) | ||
- [Contribute](#contribute) | ||
@@ -43,0 +37,0 @@ - [Resources used to help develop this module](#resources-used-to-help-develop-this-module) |
@@ -23,2 +23,8 @@ const fs = require('fs'); | ||
// Set socket to one default for TravisCI, another for anything else. | ||
const socket = (process.env.CI ? '/var/run/clamav/clamd.ctl' : '/var/run/clamd.scan/clamd.sock'); | ||
// DRY | ||
const path = which('clamscan'); | ||
module.exports = { | ||
@@ -29,9 +35,9 @@ remove_infected: false, // don't change | ||
clamscan: { | ||
path: which('clamscan'), // required for testing | ||
path, // required for testing | ||
}, | ||
clamdscan: { | ||
socket: '/var/run/clamd.scan/clamd.sock', // required for testing (change for your system) - can be set to null | ||
socket, // required for testing (change for your system) - can be set to null | ||
host: '127.0.0.1', // required for testing (change for your system) - can be set to null | ||
port: 3310, // required for testing (change for your system) - can be set to null | ||
path: which('clamdscan'), // required for testing | ||
path, // required for testing | ||
//config_file: '/etc/clamd.d/scan.conf' // set if required | ||
@@ -38,0 +44,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202324
2955
671
10