Need help with provinces?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

substack
214 Stars 97 Forks Other 96 Commits 8 Opened issues

Description

state and province lists for countries

Services available

!
?

Need anything else?

Contributors list

# 5,783
JavaScr...
bittorr...
HTML
multipa...
30 commits
# 69,716
golang
elm
micro-l...
Jupyter...
21 commits
# 786
Electro...
Heroku
C++
v8
7 commits
# 9,219
imagemi...
browser...
GraphQL
reactjs
3 commits
# 565,221
JavaScr...
3 commits
# 592,537
JavaScr...
2 commits
# 130,897
Swift
flowlay...
swift4
swift3
2 commits
# 36,374
JavaScr...
MongoDB
Mongoos...
C#
1 commit
# 29,370
JavaScr...
Shell
CSS
utility...
1 commit
# 195,625
svg-spr...
PHP
asset-p...
Gulp
1 commit
# 84,841
couchdb
Erlang
nano
cpluspl...
1 commit
# 87,047
Rust
Atom
TeX
resolve...
1 commit
# 58,805
Node.js
js
Electro...
Git
1 commit
# 627,281
JavaScr...
1 commit
# 266,179
payment...
braintr...
Ruby
Shell
1 commit
# 580,756
JavaScr...
1 commit
# 641,471
JavaScr...
1 commit

provinces

state and province lists for countries

completeness

This module currently has states and provinces for:

  • united states (US)
  • united kingdom (GB)
  • canada (CA)
  • mexico (MX)
  • 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)

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 install provinces

license

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.