{"library":"maxmind-asn","title":"maxmind-asn","description":"Provides pre-packaged MaxMind GeoLite2 ASN database for use with node-maxmind. This package distributes the ASN database (autonomous system number and organization) for IP geolocation lookups, released weekly. Version 1.0.3-20191224 is the latest. It simplifies integrating MaxMind's free GeoLite2 databases into Node.js applications by avoiding manual downloads. Compared to alternatives like geoip-lite, it offers more accurate and up-to-date data via MaxMind's official databases. Note the licensing changes effective December 30, 2019, requiring a free MaxMind account for database access.","language":"javascript","status":"active","last_verified":"Sat May 09","install":{"commands":["npm install maxmind-asn"],"cli":null},"imports":["import maxmind from 'maxmind'; const asn = maxmind.openSync(require('maxmind-asn'));","import maxmind from 'maxmind';","const lookup = maxmind.openSync(require('maxmind-asn')); const result = lookup.get('8.8.8.8');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import maxmind from 'maxmind';\nimport asnDb from 'maxmind-asn';\n\nconst lookup = maxmind.openSync(asnDb);\nconst result = lookup.get('8.8.8.8');\n\nconsole.log(result);\n// {\n//   autonomous_system_number: 15169,\n//   autonomous_system_organization: 'Google LLC'\n// }","lang":"typescript","description":"Opens the bundled MaxMind ASN database synchronously and looks up an IP address.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}