UNPKG

@internxt/scan

Version:

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.

17 lines (13 loc) 409 B
.PHONY: all TESTS = tests/index.js all: @npm install test: all @mkdir -p tests/infected @mkdir -p tests/bad_scan_dir @mkdir -p tests/mixed_scan_dir/folder1 @mkdir -p tests/mixed_scan_dir/folder2 @touch tests/clamscan-log @./node_modules/.bin/mocha --exit --trace-warnings --trace-deprecation --retries 1 --full-trace --timeout 5000 --check-leaks --reporter spec $(TESTS) clean: rm -rf node_modules