@jagomf/countrieslist
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.0 • Public • Published

    countrieslist

    npm version

    Get all sovereign countries' names in several languages associated to their ISO 3166-1 (alpha-2) code.

    Install

    Via npm:

    npm install @jagomf/countrieslist

    Supported languages

    • English (en)
    • Spanish (es)
    • German (de)
    • French (fr)
    • Portuguese (pt)
    • Italian (it)

    Usage

    Import some or all of the language pieces:

    import { en, es as langES, fr as countriesFR } from '@jagomf/countrieslist';
    
    console.log(en.SM); // 'San Marino'
    console.log(langES.NL); // 'Países Bajos'
    console.log(countriesFR['GR']); // 'Grèce'
    import * as COUNTRIES from '@jagomf/countrieslist';
    
    console.log(COUNTRIES.en.TT); // 'Trinidad and Tobago'
    console.log(COUNTRIES.es.CI); // 'Costa de Marfil'

    Install

    npm i @jagomf/countrieslist

    DownloadsWeekly Downloads

    90

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    21.8 kB

    Total Files

    17

    Last publish

    Collaborators

    • jagomf