metadefender
v1.2.5
Published
Metadefender wrapper for node js
Downloads
11
Maintainers
Readme
node-metadefender
Metadefender wrapper for node js
Metadefender is a cloud-based data sanitization (Content Disarm & Reconstruction), vulnerability detection and multi-scanning with options for free and commercial users.
It is a product of opswat
Requirements
- Nodejs > 8
- npm (bundled with nodejs)
Dependencies
"request": "^2.88.0"
How to setup
For developers
npm i --save metadefender
For contributors
Clone the repo https://github.com/tbhaxor/node-metadefender.git
git clone https://github.com/tbhaxor/node-metadefender.git
Change the directory
cd node-metadefender
Install the development dependencies
npm i -g grunt-cli
Install the project dependencies
npm install
Implementation
After you got the api key look the following example
Demonstrating hash lookup example
let { HashLookup } = require('metadefender');
let scanner = new HashLookup('YOUR API KEY');
scanner
.hashLookup('HASH TO SCAN')
.then(data => {
console.log(data);
})
.catch(err => {
console.error(err);
});
Note: Every method returns a Promise
like object
Documentation
The documentation is already provided on the metadefender help site
The following are the endpoints current supported by node-metadefender
- Apikey
- File Scanning
- Hash Lookups
- Reputation Service
- Application Information
- Malware sample sharing
- Threat Intelligence Feed
- Status endpoints
- Dynamic analysis
Contribution
Feel free to open new pull requests for the repository
Note: Before contributing to the repo, make sure you have gone through Contributing.md
License
node-metadefender is licensed under GPL-3.0