Comments (8)
Any news? IP v6 still dont work properly
from fast-geoip.
It's really appreciated how well-designed it is clap
Thanks!
I created a module called request-country that essentially uses fast-geoip for getting the country.
🥳, let me know if there's anything on my end that I could do to make your life easier,
Correct me if I'm wrong but probably that is not possible since MaxMind's GeoLite database is just for IPv4?
MaxMind also provides an IPv6 database so it is definitely possible to integrate IPv6 addresses into the package. With that being said, I'd probably make this into a new package in order to keep the size of the current package low enough so that it fits into the lowest-memory lambda.
from fast-geoip.
that makes sense; then it can be combined with is-ip
in order to determine what fast-geoip should be used!
from fast-geoip.
Any updates on IPv6 support? 😄 I’d love to use fast-geoip for my serverless use case, but only node-geoip
supports both IPv4 and IPv6. Enjoyed reading the optimization strategies—very cool.
from fast-geoip.
that makes sense; then it can be combined with
is-ip
in order to determine what fast-geoip should be used!
if we need to find out the ip version, we can do it without dependencies.
const Net = require('net');
let version = Net.isIP(ipAdress); // return 4 or 6
from fast-geoip.
Any news about v6?
> geoip.lookup('141.226.15.196').then(r => console.log(r))
> {
country: 'IL',
timezone: 'Asia/Jerusalem',
city: 'Tel Aviv',
}
> geoip.lookup('2a02:ed0:52be:e900:442d:a98c:84a5:6d31').then(r => console.log(r)) -- the same ip in v6
> {
country: 'FR', 😂
timezone: 'Europe/Paris',
city: 'Mamers',
}
from fast-geoip.
IPv6 support would be incredible :)
from fast-geoip.
We still waiting :D
from fast-geoip.
Related Issues (11)
- Support for data updates in production environment HOT 2
- Wrong data for IP HOT 4
- __dirname undefined HOT 3
- Wrong Data HOT 1
- How to update fast-geoip database? Is there some scripts or cli? HOT 4
- Incorrect location information for localhost: 127.0.0.1 HOT 2
- Consistent high CPU usage.
- Lookups not working correctly HOT 3
- Support for NextJS middleware? HOT 1
- Maybe offer asynchronous version ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-geoip.