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

@techteamer/avastscan

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techteamer/avastscan

Library for interacting with avast antivirus for linux

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@TechTeamer/avastscan

NodeJS binding for Avast Linux Antivirus

Avast-Server

avast-server is a utility to scan files through http requests without the files originally being in the same machine.

Documentation

  • node .bin/avast-server You can set the following env variables

  • AVAST_SERVER_PORT (default: 4311) Wev Server Port

  • AVAST_SERVER_REQ_SIZE_LIMIT (default: 50mb) Maximum request size that the web server accepts. NOTE: use the format (size)mb (or kb, etc)

  • AVAST_SERVER_MAX_TIMEOUT (default: 30000) Time out for requests. (In miliseconds)

  • AVAST_SERVER_SOCK_FILE (default: /var/run/avast/scan.sock) Socket file for avast

Endpoints

/scan POST

parameters

file {{ File to scan }}

response examples
{
  "is_infected": false,
  "is_excluded": false
}
{
  "is_infected": true,
  "malware_name": "malware name"
}

/info GET

response examples
{
   "version": "3.0.3",
   "virusDefinitionsVersion": "21040804"
}

Avast Client

Avast client needs to be instantiated with an options object as parameter.

{
  baseURL: 'http://my-avast-server-url', // URL of Avast Server
  timeout: 10000 //timewut for requests in MS, default is 30000
}

FAQs

Package last updated on 01 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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