Package Exports
- select-philippines-address
- select-philippines-address/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (select-philippines-address) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
![]()
select-philippines-address@1.0.6
Select addresses in the Philippines using HTML select base on address codes
- ✨ Demo Deployed at VercelReact JS
Vue JS
- ✨ Installationnpm i select-philippines-address --save
- ✨ Usageimport {
regions,
provinces,
cities,
barangays,
} from "select-philippines-address";
regions().then((region) => console.log(region));
regionByCode("01").then((region) => console.log(region.region_name));
provinces("01").then((province) => console.log(province));
provincesByCode("01").then((province) => console.log(province));
provinceByName("Rizal").then((province) => console.log(province.province_code));
cities("0128").then((city) => console.log(city));
barangays("052011").then((barangays) => console.log(barangays));regions()- has no parameter which returns all regions.regionByCode()- has 1 parameter region_code which returns a region.provinces()- has 1 parameter region_code which returns provinces in that region.provincesByCode()- has 1 parameter region_code which returns provinces in that region.provinceByName()- has 1 parameter province_name which returns province.cities()- has 1 parameter province_code which returns cities in that province.barangays()- has 1 parameter city_code which returns barangays in that city.
- ✨ Screenshot| React JS | Vue JS |
|---|---|

🚀 NPM Link
https://www.npmjs.com/package/select-philippines-address
👨💻 Source Code.
Please fork or star for support.