
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
bas-meteor-ip-geo
Advanced tools
meteor npm install bas-meteor-ip-geo
(Server)
import { IpGeo } from 'bas-meteor-ip-geo';
// you can do it synchronously
let geoData = IpGeo.geocode('74.125.224.72');
// or asynchronously
IpGeo.geocode('74.125.224.72', false, function(error, result){
if(!error){
//...
}
});
(Client)
// Get Geocode - change sample ip for "null" for get de current client ip
Meteor.call("BasMTR:IpGeo:geocode", '74.125.224.72', false, function(err, data){
if(err) {
console.log(err, err.stack); // an error occurred
} else {
console.log(data);
}
});
Custom download url:
IpGeo.defaultDatabaseUrl = 'https://sample.com/GeoLite2-City.mmdb.gz';
Or Meteor.settings
{
"IpGeo" : {
"databaseUrl" : "https://sample.com/GeoLite2-City.mmdb.gz"
}
}
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
If you wish you can contribute to the development of this project:
Contribute with your code
FAQs
Geocode IP addresses using MaxMind IP database.
The npm package bas-meteor-ip-geo receives a total of 12 weekly downloads. As such, bas-meteor-ip-geo popularity was classified as not popular.
We found that bas-meteor-ip-geo demonstrated a not healthy version release cadence and project activity because the last version was released 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.