3.0.1 • Published 5 months ago

@jagomf/countrieslist v3.0.1

Weekly downloads
57
License
MIT
Repository
github
Last release
5 months ago

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'
3.0.1

5 months ago

3.0.0

6 months ago

2.2.0

6 months ago

2.1.0

3 years ago

2.0.0

4 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago