{"id":15284211,"url":"https://github.com/basgrani-org/bas-meteor-ip-geo","last_synced_at":"2026-01-05T22:02:59.459Z","repository":{"id":74047258,"uuid":"65413281","full_name":"Basgrani-Org/bas-meteor-ip-geo","owner":"Basgrani-Org","description":"IP GeoLocation for Meteor","archived":false,"fork":false,"pushed_at":"2018-09-30T21:12:57.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-03T09:28:00.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Basgrani-Org.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-10T20:12:46.000Z","updated_at":"2018-09-30T21:12:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"791c0dd1-9612-4535-b022-8412731cc209","html_url":"https://github.com/Basgrani-Org/bas-meteor-ip-geo","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"38f220cf7ea3a17ac5d178dfb844fe4df7e3db15"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basgrani-Org%2Fbas-meteor-ip-geo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basgrani-Org%2Fbas-meteor-ip-geo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basgrani-Org%2Fbas-meteor-ip-geo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basgrani-Org%2Fbas-meteor-ip-geo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Basgrani-Org","download_url":"https://codeload.github.com/Basgrani-Org/bas-meteor-ip-geo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245138247,"owners_count":20566900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T14:51:19.757Z","updated_at":"2026-01-05T22:02:54.423Z","avatar_url":"https://github.com/Basgrani-Org.png","language":"JavaScript","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=9EARMSN5WMDDY"],"categories":[],"sub_categories":[],"readme":"# Geocode IP addresses for Meteor (v1.4.3+)\n\n[![Donate to this project using Paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=9EARMSN5WMDDY)\n\n## Install\n\n```\nmeteor npm install bas-meteor-ip-geo\n```\n\n## Use\n\n(Server)\n\n```js\nimport { IpGeo } from 'bas-meteor-ip-geo';\n\n// you can do it synchronously \nlet geoData = IpGeo.geocode('74.125.224.72');\n\n// or asynchronously\nIpGeo.geocode('74.125.224.72', false, function(error, result){\n    if(!error){\n        //...\n    }\n});\n```\n\n(Client)\n\n```js\n// Get Geocode - change sample ip for \"null\" for get de current client ip\nMeteor.call(\"BasMTR:IpGeo:geocode\", '74.125.224.72', false, function(err, data){\n    if(err) {\n        console.log(err, err.stack); // an error occurred\n    } else {\n        console.log(data);\n    }\n});\n```\n\n## Configure\n\nCustom download url:\n\n```js\nIpGeo.defaultDatabaseUrl = 'https://sample.com/GeoLite2-City.mmdb.gz';\n```\n\nOr Meteor.settings\n\n```json\n{\n    \"IpGeo\" : {\n        \"databaseUrl\" : \"https://sample.com/GeoLite2-City.mmdb.gz\"\n    }\n}\n```\n\n## Backers\n\n### Maintainers\n\nThese amazing people are maintaining this project:\n\n- [Basgrani](http://basgrani.com) - [view contributions](https://github.com/Basgrani-Org/bas-meteor-ip-geo/commits?author=Basgrani)\n\n### Sponsors\n\nNo sponsors yet! Will you be the first?\n\n[![Donate to this project using Paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=9EARMSN5WMDDY)\n\n### Contributors\n\nThese amazing people have contributed code to this project:\n\n- [Basgrani](http://basgrani.com) - [view contributions](https://github.com/Basgrani-Org/bas-meteor-ip-geo/commits?author=Basgrani)\n\n### Contribute\n\nIf you wish you can contribute to the development of this project:\n\n- Contribute with your code\n\n- [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=9EARMSN5WMDDY)\n\n## License\n\n- View the [LICENSE](https://github.com/Basgrani-Org/bas-meteor-ip-geo/blob/master/LICENSE.md)\n\n## Contact\n\n- dev@basgrani.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasgrani-org%2Fbas-meteor-ip-geo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasgrani-org%2Fbas-meteor-ip-geo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasgrani-org%2Fbas-meteor-ip-geo/lists"}