Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

mjorgegulab/multilingual-country-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multilingual-country-info

Extract country information from country name or country code (multilingual).

Install

yarn add multilingual-country-info
# - or -
npm install multilingual-country-info

Usage

const multilingualCountryInfo = require('multilingual-country-info')

// Search by country using bruteforce
const info_1 = multilingualCountryInfo.getInfoByCountryName('Spain')

// Search by country and language - faster search
const info_2 = multilingualCountryInfo.getInfoByCountryName('Spain', 'english')

// Search by country code
const info_3 = multilingualCountryInfo.getInfoByCountryCode('NL')

Contributing

PRs are welcome.


License

Copyright © 2022 - 2022, [thewolfx41] Released under the MIT License.

About

Extract country information from country name or country code (multilanguage)

Resources

License

Stars

Watchers

Forks

Packages

No packages published