0.3.0 • Published 20 days ago
@valkyriestudios/data-countries v0.3.0
data-countries
Data pack containing a list of all countries.
Installation
Run the following to install the data pack:
npm install --save @valkyriestudios/data-countries
Contents
The data pack contains the following files: | File | Description | Included fields | |------|-------------|-----------------| | raw.json | Full country data pack | name, al2, al3, num, con, tel |
Fields
The following is a description of the fields included in the data pack:
| Field | Description | Example |
|------|-------------|----------|
| name | Name of the country | 'Belgium'
|
| al2 | Alpha 2 Country Code (ISO-3166-1 alpha-2) | 'BE'
|
| al3 | Alpha 3 Country Code (ISO-3166-1 alpha-3) | 'BEL'
|
| num | Numeric Code (ISO-3166-1 numeric) | '056'
|
| con | Array of Continent codes | ['EU']
|
| tel | Array of International country calling codes | ['32']
|
Other data packs
Package | Description |
---|---|
@valkyriestudios/data-colors | Data pack containing a list of all named HTML colors |
@valkyriestudios/data-continents | Data pack containing a list of all continents |
@valkyriestudios/data-timezones | Data pack containing a list of all timezones |