Package Exports
- @aivangogh/ph-address
- @aivangogh/ph-address/dist/index.js
- @aivangogh/ph-address/dist/index.mjs
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 (@aivangogh/ph-address) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PH-Address
A collection of philippine geographic data based on PSGC
Installing
Package manager
Using npm:
$ npm install @aivangogh/ph-addressUsing yarn:
$ yarn add @aivangogh/ph-addressUsing pnpm:
$ pnpm add @aivangogh/ph-addressUsing bun:
$ bun add @aivangogh/ph-addressOnce the package is installed, you can import the library using import or require approach:
import {
getAllRegions,
getAllProvinces,
getMunicipalitiesByProvince,
getBarangaysByMunicipality,
} from "@aivangogh/ph-address";Example
import {
getMunicipalitiesByProvince,
getBarangaysByMunicipality,
} from "@aivangogh/ph-address";
// All city in Metro Manila
console.log(getMunicipalitiesByProvince("Metro Manila"));
// All barangays in the city of Manila
console.log(getBarangaysByMunicipality("Manila"));