1.11.0 • Published 8 years ago

provinces v1.11.0

Weekly downloads
10,115
License
MIT
Repository
github
Last release
8 years ago

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

1.11.0

8 years ago

1.10.0

8 years ago

1.9.2

8 years ago

1.9.1

8 years ago

1.9.0

8 years ago

1.8.2

9 years ago

1.8.1

9 years ago

0.0.1-security

9 years ago

2.0.0

9 years ago

1.8.0

10 years ago

1.7.2

10 years ago

1.7.1

10 years ago

1.7.0

10 years ago

1.6.1

10 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.2.1

10 years ago

0.2.0

12 years ago

0.1.0

12 years ago

0.0.0

12 years ago