country-names-list
v1.0.0
Published
Generate a list of the country names list in the selected language.
Downloads
18
Maintainers
Readme
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
- I have translated the names thanks to https://tech.yandex.com/translate