{"id":21033712,"url":"https://github.com/metowolf/ipdb-iso3166","last_synced_at":"2025-03-13T20:15:27.748Z","repository":{"id":57119219,"uuid":"176639205","full_name":"metowolf/ipdb-iso3166","owner":"metowolf","description":"IPIP.net database patches (ISO-3166)","archived":false,"fork":false,"pushed_at":"2019-07-03T12:16:59.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T05:39:20.115Z","etag":null,"topics":["ip","ipdb","ipip","iso3166"],"latest_commit_sha":null,"homepage":"","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/metowolf.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-20T02:46:44.000Z","updated_at":"2020-12-25T03:34:32.000Z","dependencies_parsed_at":"2022-08-23T12:00:30.760Z","dependency_job_id":null,"html_url":"https://github.com/metowolf/ipdb-iso3166","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metowolf%2Fipdb-iso3166","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metowolf%2Fipdb-iso3166/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metowolf%2Fipdb-iso3166/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metowolf%2Fipdb-iso3166/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metowolf","download_url":"https://codeload.github.com/metowolf/ipdb-iso3166/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243475370,"owners_count":20296713,"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":["ip","ipdb","ipip","iso3166"],"created_at":"2024-11-19T12:59:15.768Z","updated_at":"2025-03-13T20:15:27.717Z","avatar_url":"https://github.com/metowolf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipdb-iso3166\n\n\u003e IPIP.net database patches (ISO-3166)\n\nFree databases available for [download here](https://www.ipip.net/free_download/). If you need better accuracy you should consider buying [commercial subscription](https://www.ipip.net/product/ip.html#ipv4city).\n\n\n## Install\n\n```\n$ npm install @ipdb/iso3166\n```\n\n## Patches\n\n|value|\n|---|\n|country_code|\n|continent_code|\n|timezone|\n|utc_offset|\n|idd_code|\n\n## Usage\n\n```js\nconst IPDB = require('ipdb');\nconst ipdb_iso3166 = require('@ipdb/iso3166');\nconst ipdb = new IPDB('./data/ipipfree.ipdb', {\n  patches: [ipdb_iso3166]\n});\n\nipdb.find('183.62.57.1');\n/*\n{\n  code: 0,\n  data: {\n    country_name: '中国',\n    region_name: '广东',\n    city_name: '广州',\n    bitmask: 18,\n    country_code: 'CN',\n    continent_code: 'AP',\n    timezone: 'Asia/Shanghai',\n    utc_offset: 'UTC+8',\n    idd_code: '86'\n  }\n}\n*/\n```\n\n## Related\n\n - [ipdb](https://github.com/metowolf/ipdb) - IP lookup using IPIP.net database\n\n## License\n\nMIT © [metowolf](https://i-meto.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetowolf%2Fipdb-iso3166","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetowolf%2Fipdb-iso3166","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetowolf%2Fipdb-iso3166/lists"}