Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

weboftrust

Easy node implementation to check domains against Web Of Trust

api, web, of, trust, reputation, internet, malware, viruses, phising, scam, illegal, unethical, privaci, suspicious, discrimination, spam, pup, ads, tracking

readme

Node Simple Web Of Trust Api

Use Node to check for malicious domains in WOT

Install

npm install weboftrust

How to use

const weboftrust = require('weboftrust');

weboftrust.setApiKey("<YOUR API KEY>")

// Use checkDomains([<domain>,<domain>...]) to check that domains against WOT
// A promise will be returned
var domains = ["example.com", "www.google.com"]
weboftrust.checkDomains(domains).then(function(result){ 
    console.log(result);
}, function(err) {
    console.log(err);
});

/*
Output example
{ 'example.com':
   { '0': [ 94, 55 ],
     '1': [ 94, 55 ],
     '2': [ 94, 55 ],
     '4': [ 94, 54 ],
     target: 'example.com',
     categories: { '304': 47, '501': 95 } },
  'www.google.com':
   { '0': [ 94, 69 ],
     '1': [ 94, 69 ],
     '2': [ 94, 69 ],
     '4': [ 93, 66 ],
     target: 'google.com',
     categories: { '301': 47, '304': 6, '501': 99 } 
    } 
}
*/