easy-anti-fishing
easy-anti-fishing is an API which was made to make the usage of Anti Fish API.
Update Log v1.0.9
- Added new function
:getCurrentRegExp()
Installation
In order to install the package, open a terminal and enter the following command:
$ npm i easy-anti-fishing
Functions
request(message:string)
This function uses promise, so you must use it like the following example:
const {request} = require("easy-anti-fishing")
const req = await request(message)
Example Returns
No phishing data found:
{"match":false}
If it finds data:
{
"match":true,
"matches":
[
{
"followed":false,
"domain":"scam.link",
"source":"AntiFish",
"type":"PHISHING",
"trust_rating":1.0
}
]
}
:getCurrentRegExp()
Returns the current RegExp that the API uses for link matches.
Important Notes
- Our script returns you the data DIRECLTY which means that you don't need to path to data like (
req.data
),req
will return you the informations above. - This API (Anti Fish API) does not belong to me, it's owned by ByteAlex.