0.0.5 • Published 6 years ago

esdb-categorize v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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": []
}