
Product
Announcing Bun and vlt Support in Socket
Bringing supply chain security to the next generation of JavaScript package managers
ip2country
Advanced tools
IP 2 Country provides a current lookup table to geolocate IP address to the countries in which they are most probably located. Distributed as a stand-alone NPM module with no dependencies, the list is created at publication time. This mapping is generated through the use of two databases:
4.3M ip2country.js
1.1M ip2country.js.gz
npm install ip2country
import ip2country from 'ip2country';
let country = ip2country(ip);
There are several related lookup tables for IP addresses that may be of use.
While not published for direct consumption, this library contains the tools
to generate those tables for your process. This functionality is accessed
through the getGenericMap() function in build.js. In particular, the
following knobs are exposed when generating the lookup table:
FAQs
Self-contained IP to country lookup
We found that ip2country demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.