Socket
Socket
Sign inDemoInstall

select-philippines-address

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    select-philippines-address

Select addresses in the Philippines.


Version published
Weekly downloads
398
increased by19.16%
Maintainers
1
Install size
1.41 MB
Created
Weekly downloads
 

Readme

Source

select-philippines-address@1.0.6

Select addresses in the Philippines using HTML select base on address codes

js-standard-style npm version codecov

- ✨ Demo Deployed at Vercel

React JS

Deploy with Vercel

Vue JS

Deploy with Vercel

- ✨ Installation

npm i select-philippines-address --save

- ✨ Usage
import {
    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 JSVue JS
AppApp

https://www.npmjs.com/package/select-philippines-address

👨‍💻 Source Code.

Please fork or star for support.

🔗 API.

Philippines Addresses API

🔖 License

Apache-2.0

🚀 Developers

Isaac Arcilla

Keywords

FAQs

Last updated on 17 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc