![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@voodoo.io/maxmind-reader
Advanced tools
Simple module to read a maxmind db from S3 a keep it into memory! You can also retrieve the file periodically.
Minimalist, efficient and performance focused module to read a maxmind database. Basically it can read a maxmind db from S3 and store it into memory.
/!\ This module use async/await syntax, this is why you must have node 7.6+.
Supported and tested : >= 14
Version | Supported | Tested |
---|---|---|
18.x | yes | yes |
16.x | yes | yes |
14.x | yes | yes |
12.x | no | yes |
10.x | no | yes |
9.x | no | yes |
8.x | no | yes |
>= 7.6 | no | yes |
$ npm install @voodoo.io/maxmind-reader --save
const S3Tools = require('@voodoo.io/aws-utils').s3
const s3 = new aws.S3()
const s3Tools = new S3Tools(s3)
const Geoloc = require('@voodoo.io/maxmind-reader')
const geoloc = new Geoloc({
// here is your config
}, s3Tools)
// launch the interval to reload the file
// the delay can be customized as parameter
await geoloc.init()
const isoCode = geoloc.getCountry('149.62.156.82')
// isoCode equals 'FR'
Property | description | Default value |
---|---|---|
S3_GEOLOC_KEY | '/path/to/GeoLite2-Country.mmdb' | empty |
S3_GEOLOC_BUCKET | Bucket's name | empty |
delay | Interval in ms between two reloading | 3600000 (1hour) |
enableScheduler | Enable the scheduler? | true |
$ npm test
Coverage report can be found in coverage/.
FAQs
Simple module to read a maxmind db from S3 a keep it into memory! You can also retrieve the file periodically.
We found that @voodoo.io/maxmind-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.