JSPM

country-province-data

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 193
  • Score
    100M100P100Q78255F
  • License MIT

An array of countries with the information you need for an address form.

Package Exports

  • country-province-data

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (country-province-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Country and Province Data

Method

var countryProvinceData = require("country-province-data")

Requiring the module gives you an array of countries with the information you need for an address form.

Data Format

Each country object contains:

  • name
  • code
  • label
  • zip_label
  • zip_required
  • province_label
  • provinces
  • province_labels
  • province_codes
  • province_alternate_names

install

With npm do:

npm install country-province-data

License

MIT