November Papa Mike

    site-monitoring

    1.5.0 • Public • Published

    site-monitoring

    Where is this request coming from?

    Exposed methods

    • locateByDomain
    const SiteMonitoring = require('site-monitoring');
    let debug = false;
    let siteMonitoring = new SiteMonitoring(debug); 
    
    siteMonitoring.locateByDomain('www.example.com')
    .then({ origin, destination } => {
        // origin = { region_code, latitude, longitude }
        // destination = [ { region_code, latitude, longitude } ]
    });
    • locateByAddress
    const SiteMonitoring = require('site-monitoring');
    let debug = false;
    let siteMonitoring = new SiteMonitoring(debug);
    
    siteMonitoring.locateByAddress('111.111.111.111')
    .then({ origin, destination } => {
      // origin = { region_code, latitude, longitude }
      // destination = [ { region_code, latitude, longitude } ]
    });

    Keywords

    none

    Install

    npm i site-monitoring

    DownloadsWeekly Downloads

    1

    Version

    1.5.0

    License

    MIT

    Last publish

    Collaborators

    • nshimiye