0.3.0 • Published 1 year ago

hoangdevtrai-country-list-js v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

country-list-js

Well, this package contains a list of countries, which provide you country code, country name and country emoji. That's all.

Easy to use

yarn hoangdevtrai-country-list-js

// or

npm install hoangdevtrai-country-list-js

In your code

import { getCountry, Countries } from 'hoangdevtrai-country-list-js'

console.log(getCountry('VN'))
// { label: 'Vietnam', emoji: '🇻🇳' }

console.log(Countries)  
// [
//     {
//         "label": "Afghanistan",
//         "value": "AF",
//         "emoji": "🇦🇫"
//     },
//     {
//         "label": "Albania",
//         "value": "AL",
//         "emoji": "🇦🇱"
//     },
//     {
//         "label": "Algeria",
//         "value": "DZ",
//         "emoji": "🇩🇿"
//     },
//     ... and other 237 countries
// ]

Cheers!