esdb-categorize

0.0.5 • Public • Published

esdb-categorize

npm package to categorize domains for EtherScamDB

Created by blurpesec of MyCrypto

To add:
npm install esdb-categorize
To run test:
npm test
Example test.js implementation:
const test = require('esdb-categorize');
const json = require('json');

const input = {"domain": "https://www.mycryptor.com/"}

categorize = new test(input)
categorize.test().then(function(output) {
    console.log(JSON.stringify(output, null, 2))
})
Output:

Outputs come in the form of a JSON object which contains some data

For verified domains:

{
  "input": "https://www.mycrypto.com/",
  "categorized": true,
  "name": "mycrypto.com",
  "idnhomograph": false,
  "detectedbytest": [
    "falsepositivetest"
  ],
  "category": "Verified Domain",
  "subcategory": "MyCrypto"
}

For categorized domains:

{
  "input": "https://www.verify.getbigeth.com/",
  "categorized": true,
  "name": "verify.getbigeth.com",
  "idnhomograph": false,
  "detectedbytest": [
    "stringtokentest",
    "containsfiletest"
  ],
  "category": "Scamming",
  "subcategory": "Trust-Trading"
}

For uncategorized domains:

{
  "input": "https://www.mqsdadasroperas.com/",
  "name": "mqsdadasroperas.com",
  "categorized": false,
  "idnhomograph": false,
  "detectedbytest": []
}

Package Sidebar

Install

npm i esdb-categorize

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

28.9 kB

Total Files

11

Last publish

Collaborators

  • blurpesec