Socket
Socket
Sign inDemoInstall

syapi-node

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    syapi-node

Node.js package for detecting phishing websites


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
3.81 kB
Created
Weekly downloads
 

Readme

Source

syapi-node

npm dependents install size Downloads NPM Version run on repl.it

syapi-node is a Node.js package for detecting phishing websites. It uses a combination of machine learning algorithms and blacklist checks to determine if a given URL is likely to be a phishing website.

Installation

To install syapi-node, simply use npm:

npm install syapi-node

Usage

To use syapi-node, first import the Client class:

const { Client } = require('syapi-node');

Then, create a new instance of the Client class:

const api = new Client();

To check if a URL is a phishing website, use the fetchDomain method:

api.fetchDomain("https://example.com").then(function (response) {
console.log(response);
});

The fetchDomain method returns a Promise that resolves with an object containing the following properties:

  • isPhishing: A boolean value indicating whether or not the URL is a phishing website.
  • confidence: A number between 0 and 1 indicating the confidence level that the URL is a phishing website. Higher values indicate higher confidence.
  • blacklist: An array of strings containing the names of any blacklists that the URL appears on. If the URL does not appear on any blacklists, this property will be an empty array.

License

syapi-node is licensed under the MIT License. See the LICENSE file for more information.

Keywords

FAQs

Last updated on 31 Mar 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc