0.0.2 • Published 3 years ago

@fc5570/phisherman.js v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

phisherman.js

A NodeJS wrapper for phisherman API.

Installation

npm install phisherman.js
yarn add phisherman.js

Example

import { PhishermanClient } from '@fc5570/phisherman.js';

const client = new PhishermanClient({
	apiKey: '<your-api-key>'
});

// Check if domain is a phish or scam
client.check('disczrd.com').then(console.log); // { classification: 'malicious', verifiedPhish: true }

// Report a phish
client.report('https://dicsords-gifted.ru/nitro').then(console.log); // { success: false, message: 'Domain already exists' }

API

PhishermanClient.constructor(options)

options is an object with the following properties:

  1. apiKey (string): The api key to authorize requests.

PhishermanClient.check(domain)

Checks if a domain is a phish or scam.

PhishermanClient.report(domain)

Reports a phish or a scam.

If you encounter any issues, please join the Discord Server and ask for help, or contact FC#5104.