Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 597 Bytes

File metadata and controls

23 lines (20 loc) · 597 Bytes

ISO 3166 Alpha Code Converter

Convert between alpha2 ('us') and alpha3 ('USA') ISO 3166 country codes

Usage

import { alpha2to3, alpha3to2 } from 'iso3166-alpha-converter'
alpha2to3["us"] // -> "USA"
alpha3to2["USA"] // -> "us"

Development

# Setup
npm install
poetry install
# Build
npm run build
# Test
npm test

License

Data comes from this wikipedia page and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.