Wondering what’s next for npm?Check out our public roadmap! »

    countries-iso

    1.0.1 • Public • Published

    Get country names in several languages from various sources, and resolve them to an ISO-3 code.

    Use the distributed json:

    terminal:

    npm install countries-iso

    javascript:

    const isos = require('countries-iso')
    isos['Ecuador'] // 'ECU'
    isos['la République socialiste démocratique de Sri Lanka'] // 'LKA'
    isos['Сомали'] // 'SOM'

    Create the json yourself:

    git clone git@github.com:nsonnad/countries-iso.git
    cd countries-iso
    make

    Install

    npm i countries-iso

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • avatar