Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

barangay

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barangay

A simple list of barangays in the Philippines ordered into city/towns, provinces, then regions.

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

barangay

Node.js CI CodeQL

A simple list of barangays in the Philippines ordered into city/towns, provinces, then regions.

Install

npm install --save barangay

Usage

import barangay from 'barangay';

// list all regions
const regions = barangay();

// use one of the regions to get the list of provinces
const NCR_PROVINCES = barangay('NATIONAL CAPITAL REGION');
// use one of the provinces to get list of towns and cities under that province
const METROMANILA_TOWNSCITIES = barangay('NATIONAL CAPITAL REGION', 'METRO MANILA');
// use the region, province, and town/city to get the list of barangays
const CITYOFMANILA_BARANGAYS = barangay('NATIONAL CAPITAL REGION', 'METRO MANILA', 'CITY OF MANILA');

// the values are case sensitive
// the function will throw if either the value is invalid or does not exist

// you can also get all the data
const allData = barangay.dump;

Keywords

FAQs

Package last updated on 21 Oct 2021

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc