malicious-link-detector

1.6.2 • Public • Published

Malicious Link Detector

This package allows you to verify any link through the google safe browsing

  • Easy to use
  • Almost no dependencies
  • Works with link and domain name

Examples :

Using .then()

const { request } = require('malicious-link-detector');
request('https://google.com')
    .then(res => {
        console.log(res)
    })
    //return safe

Using async/await

const { request } = require('malicious-link-detector');

(async () => {
    let result = await request('https://discord.gg')
    console.log(result);
    //Return Too many contents
})();

List of possible results :

  • Safe
  • Suspicious
  • Dangerous
  • Too many contents
  • Invalid

This package is based on https://transparencyreport.google.com/safe-browsing/search If the website return a link as malicious, the module return also the link as malicious

Package Sidebar

Install

npm i malicious-link-detector

Weekly Downloads

1

Version

1.6.2

License

ISC

Unpacked Size

3.01 kB

Total Files

3

Last publish

Collaborators

  • sinan2245