iso3166-alpha-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i iso3166-alpha-converter

    Weekly Downloads

    92

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    8.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • corollari
    • 0xsalah