Negotiate Pushing Milestone

    eviludger-extra-csv

    1.0.4 • Public • Published

    eviludger

    Build Status MIT Licence Dependencies

    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'
     *   }
     * }
     *
     *****************************/
     

    Install

    npm i eviludger-extra-csv

    DownloadsWeekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Last publish

    Collaborators

    • eviltik