eviludger-extra-csv
v1.0.4
Published
Nodejs module to play with extra CSV files from Udger databases https://udger.com/support/documentation/?doc=48
Downloads
3
Readme
eviludger
Nodejs module to play with Udger databases. https://udger.com/
Installation
$ npm install eviludger
Warning
This module mount udger database in memory.
let memStats = eviludger.getMemoryUsage();
// with real udger databases, 500Mo of RAM is used
/*****************************
* return process.memoryUsage();
* {
* rss: 549416960,
* heapTotal: 529178624,
* heapUsed: 491410080,
* external: 171998
* }
*
*****************************/
Usage
const UDGER_DB_PATH = './databases';
const eviludger = new require('eviludger')(UDGER_DB_PATH);
let myUa = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36";
let result = eviludger.getInformation("87.65.43.21", myUa);
/*****************************
* return an object like this
*
* {
* isAnonymized: false,
* isDatacenter: false,
* isFakeCrawler: false,
* isKnownAttackSource: false,
* isPublicCgiProxy: false,
* isPublicWebProxy: false,
* isTorExitNode: false,
* isWebScraper: false,
* isKnownUserAgent: {
* lastSeen:'2017-02-10 04:49:14'
* }
* }
*
*****************************/