{"id":16053442,"url":"https://github.com/pranavrajs/timezone-phone-codes","last_synced_at":"2026-01-16T00:27:28.517Z","repository":{"id":257789557,"uuid":"860937561","full_name":"pranavrajs/timezone-phone-codes","owner":"pranavrajs","description":"A simple library to return telephone codes based on timezone","archived":false,"fork":false,"pushed_at":"2024-09-23T17:47:02.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-15T15:29:12.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/timezone-phone-codes","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pranavrajs.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-21T15:08:31.000Z","updated_at":"2025-01-02T03:19:22.000Z","dependencies_parsed_at":"2024-10-27T16:17:48.758Z","dependency_job_id":null,"html_url":"https://github.com/pranavrajs/timezone-phone-codes","commit_stats":null,"previous_names":["pranavrajs/timezone-phone-codes"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pranavrajs/timezone-phone-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavrajs%2Ftimezone-phone-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavrajs%2Ftimezone-phone-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavrajs%2Ftimezone-phone-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavrajs%2Ftimezone-phone-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranavrajs","download_url":"https://codeload.github.com/pranavrajs/timezone-phone-codes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavrajs%2Ftimezone-phone-codes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28474502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T00:15:39.755Z","status":"ssl_error","status_checked_at":"2026-01-16T00:15:32.174Z","response_time":62,"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":"2024-10-09T01:42:18.802Z","updated_at":"2026-01-16T00:27:28.493Z","avatar_url":"https://github.com/pranavrajs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timezone Phone Codes\n\nA lightweight, easy-to-use library for retrieving telephone country codes based on timezone, with full TypeScript support.\n\n## Features\n\n- Get phone country codes by timezone\n- Zero dependencies\n\n## Installation\n\nYou can install this package using npm, yarn, or pnpm:\n\n```bash\n# npm\nnpm install timezone-phone-codes\n\n# yarn\nyarn add timezone-phone-codes\n\n# pnpm\npnpm add timezone-phone-codes\n```\n\n## Usage\n\nHere's a basic example of how to use the library:\n\n```typescript\nimport { getPhoneCodeByTimezone } from 'timezone-phone-codes';\n\nconst phoneCode = getPhoneCodeByTimezone('America/New_York');\nconsole.log(phoneCode); // Output: +1\n\nconst unknownTimezone = getPhoneCodeByTimezone('Unknown/Timezone');\nconsole.log(unknownTimezone); // Output: null\n```\n\n## API\n\n```ts\ngetPhoneCodeByTimezone(timezone: string): string | null\n```\n\nReturns the phone country code for the given timezone. If the timezone is not recognized, it returns `null`.\n\n## Supported Timezones\n\nThis library supports a wide range of timezones. Here are a few examples:\n\n- America/New_York: +1\n- Europe/London: +44\n- Asia/Tokyo: +81\n- Australia/Sydney: +61\n\n\n## Testing\n\nTo run the tests:\n```bash\npnpm test\n```\n\nTo run the tests with coverage:\n```bash\npnpm coverage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavrajs%2Ftimezone-phone-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranavrajs%2Ftimezone-phone-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavrajs%2Ftimezone-phone-codes/lists"}