
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@stouder-io/adonis-geolite2
Advanced tools
This package uses geolite2-redist and thus, you MUST comply with it specific conditions. For more information please check their npm page.
node ace add @stouder-io/adonis-geolite2
Alternatively, you can install it manually.
npm i @stouder-io/adonis-geolite2
If installed manually, you need to manually run the configuration command.
node ace configure @stouder-io/adonis-geolite2
The geolite2 is automatically attached to HTTP requests, allowing you to use it to retrieves informations about the geolocation of requesting IPs.
router.get('/', ({ geolite2 }: HttpContext) => {
const country = geolite2.country()
const city = geolite2.city()
const asn = geolite2.asn()
return { country, city, asn }
})
If no parameter is provided to the functions, it uses request.ip(). Alternatively you can pass the IP you want to lookup.
router.get('/', ({ geolite2 }: HttpContext) => {
const country = geolite2.country('8.8.8.8')
const city = geolite2.city('8.8.8.8')
const asn = geolite2.asn('8.8.8.8')
return { country, city, asn }
})
FAQs
Maxmind's GeoLite2 integration for Adonis
We found that @stouder-io/adonis-geolite2 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.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.