{"id":24835752,"url":"https://github.com/tobilg/azure-edge-locations","last_synced_at":"2026-01-24T08:31:39.130Z","repository":{"id":57188702,"uuid":"443373076","full_name":"tobilg/azure-edge-locations","owner":"tobilg","description":"Approximation of Azure edge locations","archived":false,"fork":false,"pushed_at":"2025-10-05T17:55:14.000Z","size":197,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T10:33:10.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/tobilg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-31T15:21:21.000Z","updated_at":"2025-10-05T17:55:16.000Z","dependencies_parsed_at":"2024-05-20T20:34:29.875Z","dependency_job_id":"ed20acb2-1763-4deb-aabe-059e5f51d6f2","html_url":"https://github.com/tobilg/azure-edge-locations","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"684a5c248d530602400d3b29210fff51dab251ee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tobilg/azure-edge-locations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fazure-edge-locations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fazure-edge-locations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fazure-edge-locations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fazure-edge-locations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilg","download_url":"https://codeload.github.com/tobilg/azure-edge-locations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fazure-edge-locations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28720752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-01-31T04:51:35.786Z","updated_at":"2026-01-24T08:31:39.111Z","avatar_url":"https://github.com/tobilg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azure-edge-locations\nApproximation of Azure edge locations, usable via a lookup mechanism.\n\n## Installation\nTo install, you can do the following:\n\n```bash\n$ npm i azure-edge-locations\n```\n\nThis package includes TypeScript definitions and is written in TypeScript for better type safety and developer experience.\n\n## Usage\n\n### Node (JavaScript)\n\n```javascript\nconst AzureEdgeLocations = require('azure-edge-locations');\nconst el = new AzureEdgeLocations();\nconst location = el.lookup('ATL');\n\n/* returns\n{\n  \"city\": \"Atlanta\",\n  \"country\": \"United States\",\n  \"countryCode\": \"US\",\n  \"latitude\": 33.6367,\n  \"longitude\": -84.428101,\n  \"count\": 3\n}\n*/\n\nconst invalid = el.lookup('FOO'); // returns false\n\n// Get edge location count\nconst locationCount = el.getLocationCount(); // returns 104\n\n// Get all edge locations\nconst locations = el.getLocations();\n\n// Get PoP count\nconst popCount = el.getPoPCount() // returns 182\n```\n\n### Node (TypeScript)\n\n```typescript\nimport { AzureEdgeLocations } from 'azure-edge-locations';\n\nconst el = new AzureEdgeLocations();\nconst location = el.lookup('ATL');\n\n/* returns\n{\n  \"city\": \"Atlanta\",\n  \"country\": \"United States\",\n  \"countryCode\": \"US\",\n  \"latitude\": 33.6367,\n  \"longitude\": -84.428101,\n  \"count\": 3\n}\n*/\n\nconst invalid = el.lookup('FOO'); // returns false\n\n// Get edge location count\nconst locationCount = el.getLocationCount(); // returns 104\n\n// Get all edge locations\nconst locations = el.getLocations();\n\n// Get PoP count\nconst popCount = el.getPoPCount() // returns 182\n```\n\n### Browser\n\nThis package is published as an UMD module, and can be used in the browser directly from [unpkg](https://unpkg.com/).\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003cscript src=\"https://unpkg.com/azure-edge-locations\"\u003e\u003c/script\u003e \n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cscript\u003e\n            // Using the global variable\n            document.write('There are ' + azureEdgeLocations.getLocationCount() + ' edge locations');\n        \u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Data generation\n\n### TLDR\n\nRun `npm run build`\n\n## Data\n\nThis project is considered as in the `alpha` stage, so there's **no guarantee that the data is accurate**. Please feel free to test and give feedback either via creating an [issue](https://github.com/tobilg/azure-edge-locations/issues) or a [pr](https://github.com/tobilg/azure-edge-locations/pulls)\n\nThe data files can be found at\n* [data/azure-edge-locations.csv](data/azure-edge-locations.csv)\n* [data/azure-edge-locations.json](data/azure-edge-locations.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fazure-edge-locations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilg%2Fazure-edge-locations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fazure-edge-locations/lists"}