New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

psgc

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

psgc

Provides PSGC (Philippine Standard Geographic Code) data.

latest
Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
80
29.03%
Maintainers
1
Weekly downloads
 
Created
Source

Philippine Standard Geographic Code (PSGC)

Provides PSGC (Philippine Standard Geographic Code) data for your application.

Quality Gate Status MIT License npm npm bundle size

Installation

PSGC is available via npm.

$ npm install --save psgc

Or you can use yarn.

$ yarn add psgc

Usage

Import psgc into your app.

import { regions, provinces, municipalities, barangays } from "psgc";

Use the methods all, find, or filter to get the data you need.

regions.all(); // To get all regions
regions.find("Ilocos Region"); // To get a specific region, pass the exact region name
regions.filter("loco"); // To get a list of all regions with names that contain the argument; case-insensitive

provinces.all();
provinces.find("La Union");
regions.filter("la u");

municipalities.all();
municipalities.find("Agoo");
municipalities.filter("agoo");

barangays.all();
barangays.find("San Nicolas East");
barangays.filter("san nico");

TODO

  • Add and update additional information about regions, provinces, municipalities and barangays

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

Credits

Keywords

pilipinas

FAQs

Package last updated on 17 Nov 2023

Did you know?

Socket

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