Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
ipapi.co
Advanced tools
Readme
npm install ipapi.co
var ipapi = require('ipapi.co');
var callback = function(loc){
console.log(loc);
};
ipapi.location(callback) // Complete location for your IP address
> {
ip: '50.1.2.3',
city: 'Wilton',
region: 'California',
country: 'US',
postal: 95693,
latitude: 38.3926,
longitude: -121.2429,
timezone: 'America/Los_Angeles'
}
ipapi.location(callback, '', '', 'ip') // Your external IP address
50.1.2.3
ipapi.location(callback, '', '', 'city') // Your city
Wilton
ipapi.location(callback, '', '', 'country') // Your country
US
ipapi.location(callback, '8.8.8.8') // Complete location for IP address 8.8.8.8
> {
ip: '8.8.8.8',
city: 'Mountain View',
region: 'California',
country: 'US',
postal: '94035',
latitude: 37.386,
longitude: -122.0838,
timezone: 'America/Los_Angeles'
}
ipapi.location(callback, '8.8.8.8', '', 'city') // City for IP address 8.8.8.8
Mountain View
ipapi.location(callback, '8.8.8.8', '', 'country') // Country for IP address 8.8.8.8
US
API key can be specified in the following ways :
ipapi.js
by setting API_KEY
variableipapi.location(callback, '8.8.8.8', 'secret-key')
''
or undefined
FAQs
IP address to location mapping service. Free & paid API for a secure, fast & reliable IP lookup (city, country, latitude, longitude, timezone) - https://ipapi.co
The npm package ipapi.co receives a total of 632 weekly downloads. As such, ipapi.co popularity was classified as not popular.
We found that ipapi.co 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.