Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yousefvand/virustotal-api
virustotal api wrapper
https://github.com/yousefvand/virustotal-api
api-wrapper nodejs virustotal
Last synced: 12 days ago
JSON representation
virustotal api wrapper
- Host: GitHub
- URL: https://github.com/yousefvand/virustotal-api
- Owner: yousefvand
- License: mit
- Created: 2018-09-07T22:15:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T18:08:12.000Z (about 1 year ago)
- Last Synced: 2024-04-23T22:09:49.438Z (7 months ago)
- Topics: api-wrapper, nodejs, virustotal
- Language: JavaScript
- Size: 1.21 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# virustotal-api
[![https://nodei.co/npm/virustotal-api.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/virustotal-api.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/virustotal-api)
[Virustotal API v2.0](https://developers.virustotal.com/v2.0/reference) wrapper class
## Install
```shell
npm i virustotal-api
```## Example
```javascript
const fs = require("fs");
const VirusTotalApi = require("virustotal-api");
const virusTotal = new VirusTotalApi("");fs.readFile(__filename, (err, data) => {
if (err) {
console.log(`Cannot read file. ${err}`);
} else {
virusTotal
.fileScan(data, "file.js")
.then(response => {
let resource = response.resource;
// sometimes later try:
virusTotal.fileReport(resource).then(result => {
console.log(result);
});
})
.catch(err => console.log(`Scan failed. ${err}`));
}
});
```For more info please refer to [documentation](./docs/virus-total.md)
See full change log [here](CHANGELOG.md).
### Version 1.1.7
- Dependency update to fix security vulnerabilities.