{"id":24063336,"url":"https://github.com/do-kevin/pc-vn","last_synced_at":"2026-05-01T23:34:17.794Z","repository":{"id":47852354,"uuid":"387403319","full_name":"do-kevin/pc-vn","owner":"do-kevin","description":"Helper to get provinces, cities, wards of Vietnam","archived":false,"fork":false,"pushed_at":"2023-06-16T02:36:00.000Z","size":469,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T20:04:37.049Z","etag":null,"topics":["district","javascript","localities","province","vietnam","ward"],"latest_commit_sha":null,"homepage":"https://do-kevin.github.io/pc-vn/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"giangmd/pc-vn","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/do-kevin.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-07-19T09:05:14.000Z","updated_at":"2023-05-03T08:22:33.000Z","dependencies_parsed_at":"2023-01-31T20:31:51.737Z","dependency_job_id":null,"html_url":"https://github.com/do-kevin/pc-vn","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/do-kevin%2Fpc-vn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-kevin%2Fpc-vn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-kevin%2Fpc-vn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-kevin%2Fpc-vn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-kevin","download_url":"https://codeload.github.com/do-kevin/pc-vn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240894277,"owners_count":19874789,"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":["district","javascript","localities","province","vietnam","ward"],"created_at":"2025-01-09T09:37:28.156Z","updated_at":"2026-05-01T23:34:17.715Z","avatar_url":"https://github.com/do-kevin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @do-kevin/pc-vn\n\nType-safe \u0026 simple utility library for searching and filtering Vietnam's localities.\n\n## Documentation\n\nVisit the [official documentation](https://do-kevin.github.io/pc-vn).\n\n## Install\n\n    npm install @do-kevin/pc-vn\n    yarn install @do-kevin/pc-vn\n\n## Functions\n\n| Function                                 | Desciption                                          |\n| ---------------------------------------- | --------------------------------------------------- |\n| getProvinces()                           | Get all provinces                                   |\n| getDistricts()                           | Get all districts                                   |\n| getWards()                               | Get all wards                                       |\n| getDistrictsByProvinceCode(provinceCode) | Get districts by province code(from getProvinces()) |\n| getWardsByDistrictCode(districtCode)     | Get wards by district code(from getDistricts())     |\n| getWardsByProvinceCode(provinceCode)     | Get wards by province code(from getProvinces())     |\n\n## Usage\n\n```\nimport {\n  getDistrictsByProvinceCode,\n  getProvinces,\n  getWardsByDistrictCode,\n} from '@do-kevin/pc-vn';\n\nconst provinces = getProvinces();\n\nconst wards = getWardsByDistrictCode(\"268\");\n\nconst districts = getDistrictsByProvinceCode(\"95\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-kevin%2Fpc-vn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-kevin%2Fpc-vn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-kevin%2Fpc-vn/lists"}