site-monitoring
v1.5.0
Published
Find geo locations a given website
Downloads
3
Readme
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 } ]
});