
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
eurekapi-geolocation
Advanced tools
A basic wrapper around eurekapi's ip geolocation api
2.0.1
Because eurekapi-geolocation uses native ES6 Promises and classes you must be running Node v4.2.4 or above
$ npm i eurekapi-geolocation
const Geolocator = require('eurekapi-geolocation');
var geoip = new Geolocator({
ip: '127.0.0.1', //Some ip address string
format: 'JSON', //"XML" or "JSON" defaults to JSON,
apikey: 'SOMERANDOMKEY', //Your eurekapi api key
logger: undefined, //A logger function to use defaults to console.log
timeout: 5000, //Time in milliseconds before timing out the geolocation operation defaults to 3000
});
geoip.getLocation(function (err, data) {
if (err) {
console.log('Error', err);
}
else {
console.log('Success', data);
}
});
MIT
FAQs
Nodejs wrapper for eurekapi.com ip geolocation service
We found that eurekapi-geolocation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.