Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Web Server that provides a simple API for IP address information
MAXMIND_LICENSE_KEY
(required) - Set this to the key you got from Maxmind aboveIPAPI_PORT
(optional) - The server port. Defaults to 3334.git clone git@github.com:guyellis/ipapi.git
npm install
npm start
From a browser or your client code call http://<your-domain>/ip/<x.x.x.x>
For example, if you're running the server locally then opening http://localhost:3334/ip/1.2.3.4
in your browser will return some JSON that looks something like this:
{
"city": {
"geoname_id": 2077456,
"names": {
"en": ""
}
},
"continent": {
"code": "OC",
"geoname_id": 0,
"names": {
"en": "Oceania"
}
},
"country": {
"geoname_id": 0,
"iso_code": "AU",
"names": {
"en": "Australia"
}
},
"location": {
"latitude": 0,
"longitude": 0,
"metro_code": 0,
"time_zone": "Australia/Sydney"
},
"postal": {
"code": ""
},
"registered_country": {
"geoname_id": 0,
"iso_code": "AU",
"names": {
"en": "Australia"
}
},
"subdivisions": [
{
"geoname_id": 0,
"iso_code": "",
"names": {
"en": ""
}
}
]
}
The data for the server comes from the GeoLite2 DB provided by maxmind.com.
4.0.0
FAQs
Web Server that provides a simple API for IP address information
The npm package ipapi receives a total of 17 weekly downloads. As such, ipapi popularity was classified as not popular.
We found that ipapi 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.