1.0.1 • Published 5 years ago
@digitsole/blackburn-iso-3166-dial v1.0.1
@digitsole/blackburn-iso-3166-dial
Installation
pnpm install @digitsole/blackburn-iso-3166-dial
Overview
This is a utility to deal with countries.
Structure
| Property | Type | Description |
|---|---|---|
| name | string | Refers to the full name of country |
| alpha2 | string | Refers to Alpha-2 (two letter) codes from ISO 3166-1 |
| alpha3 | string | Refers to Alpha-3 (three letter) codes from ISO 3166-1. These codes are synonymous with World Bank Codes |
| m49 | int | Indicates United Nations Statistics Division M49 numeric codes (nearly synonymous with ISO 3166-1 numeric codes, which are based on UN M49. ISO 3166-1 does not include Channel Islands or Sark) |
| dial | string | Country code from International Telecommunication Union - Telecommunication Standardization Sector (ITU-T) recommendation E.164, sometimes followed by area code. |
Getters
| Getters | Description |
|---|---|
| list | Get all countries, without filter |
Methods
| Option | Description |
|---|---|
| onlyWithDial | Filter countries to remove those without dial |