Skip to content

state and province lists for countries

License

Notifications You must be signed in to change notification settings

Bohica1/provinces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

provinces

state and province lists for countries

completeness

This module currently has states and provinces for:

  • united states (US)
  • united kingdom (GB)
  • canada (CA)
  • australia (AU)
  • china (CN)
  • germany (DE)
  • belgium (BE)
  • netherlands (NL)
  • denmark (DK)
  • Turkey (TR)
  • Indonesia (ID)
  • Jordan (JO)
  • India (IN)
  • Cambodia (KH)
  • Ethiopia (ET)
  • Peru (PE)
  • Cuba (CU)
  • Argentina (AR)
  • Chile (CL)
  • Bolivia (BO)
  • Spain (ES)
  • Bangladesh (BD)
  • Pakistan (PK)
  • Nigeria (NG)
  • Japan (JP)
  • austria (AT)
  • brazil (BR)
  • Philippines (PH)
  • Vietnam (VN)
  • Costa Rica (CR)
  • Colombia (CO)
  • El Salvador (SV)
  • Guatemala (GT)
  • Ireland (IE)
  • Panama (PA)
  • Mexico (MX)
  • New Zealand (NZ)
  • South Africa (ZA)

methods

var provinces = require('provinces')

Requiring the module gives you an array of object rows.

data format

Each row consists of:

  • row.name - full name of the province or state
  • row.country - country abbreviation
  • row.short - optional 2 or 3 character short name
  • row.alt - optional array of additional names and abbreviations
  • row.region - optional region of a country (for example: "Wales")

install

With npm do:

npm -i git+https://github.com/Bohica1/provinces.git
yarn add git+https://github.com/Bohica1/provinces.git

license

MIT

About

state and province lists for countries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%