country-names-list

1.0.0 • Public • Published

Country Names List

Generate a list of the country names list in the selected language.

Installing

$ npm install country-names-list --save

Usage

getLanguages(stringFormat)

/* stringFormat is an option value. utf8 by default */

Supported languages are:

  • en: English
  • be: Belarusian
  • ca: Catalan
  • cs: Czech
  • da: Danish
  • de: German
  • el: Greek
  • es: Spanish
  • et: Estonian
  • fi: Finnish
  • fr: French
  • hu: Hungarian
  • it: Italian
  • lt: Lithuanian
  • lv: Latvian
  • mk: Macedonian
  • nl: Dutch
  • no: Norwegian
  • pt: Portuguese
  • ru: Russian
  • sk: Slovak
  • sl: Slovenian
  • sq: Albanian
  • sv: Swedish
  • tr: Turkish
  • uk: Ukrainian

Example

const countries = require('country-names-list')

countries.getLanguages()

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

Package Sidebar

Install

npm i country-names-list

Weekly Downloads

24

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tommytrg