{"id":37828711,"url":"https://github.com/marekrozmus/zuora-codes","last_synced_at":"2026-01-16T15:47:22.337Z","repository":{"id":57406791,"uuid":"425996563","full_name":"marekrozmus/zuora-codes","owner":"marekrozmus","description":"Mappings of US State/Canadian Province to Name and back again 🧙","archived":false,"fork":false,"pushed_at":"2021-12-05T23:08:39.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T23:05:20.869Z","etag":null,"topics":["mappings","provinces","states","zuora"],"latest_commit_sha":null,"homepage":"","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/marekrozmus.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":"2021-11-08T21:16:47.000Z","updated_at":"2021-12-05T23:08:41.000Z","dependencies_parsed_at":"2022-09-05T06:41:35.992Z","dependency_job_id":null,"html_url":"https://github.com/marekrozmus/zuora-codes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/marekrozmus/zuora-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekrozmus%2Fzuora-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekrozmus%2Fzuora-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekrozmus%2Fzuora-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekrozmus%2Fzuora-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marekrozmus","download_url":"https://codeload.github.com/marekrozmus/zuora-codes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marekrozmus%2Fzuora-codes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["mappings","provinces","states","zuora"],"created_at":"2026-01-16T15:47:22.196Z","updated_at":"2026-01-16T15:47:22.297Z","avatar_url":"https://github.com/marekrozmus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zuora-codes\n\nMappings of US State/Canadian Province to Name and back again 🧙\n\nBased on:\n\n- [United States Standard State Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/B_State_Names_and_2-Digit_Codes)\n- [Zuora Knowledge Base - Canadian Standard Province Codes](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Country%2C_State%2C_and_Province_Codes/C_Canadian_Province_Names_and_2-Digit_Codes)\n\n## Installation\n\n```bash\nnpm install zuora-codes\n# or via yarn\nyarn add zuora-codes\n```\n\n## Usage\n\n### getUnitedStatesStateCode\n\nGets US state code by state's name or throws an error if state name is incorrect.\n\n##### Type signature\n\n```typescript\n(stateCode: UnitedStatesStateName | string) =\u003e string;\n```\n\n### getUnitedStatesStateName\n\nGets US state name by state's code or throws an error if state code is incorrect.\n\n##### Type signature\n\n```typescript\n(stateCode: UnitedStatesStateCode | string) =\u003e string;\n```\n\n### getCanadianProvinceCode\n\nGets Canadian province code by province's name or throws an error if province name is incorrect.\n\n##### Type signature\n\n```typescript\n(stateCode: CanadianProvinceName | string) =\u003e string;\n```\n\n### getCanadianProvinceName\n\nGets Canadian province name by province's code or throws an error if province code is incorrect.\n\n##### Type signature\n\n```typescript\n(stateCode: CanadianProvinceCode | string) =\u003e string;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekrozmus%2Fzuora-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarekrozmus%2Fzuora-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekrozmus%2Fzuora-codes/lists"}