country_full_info

1.0.1 • Public • Published

version 1.0.1

npm i country_full_info
import {country_info, country_info_by_name, country_info_by_capital} from 'country_full_info';

const test1 = country_info
// return a array of country list

// **********************************
const test2 = country_info_by_name({country_name:"Afghanistan"})
 {
        "dial_code": "+93",
        "code": "AF",
        "emoji": "🇦🇫",
        "phLength": 9,
        "country": "Afghanistan",
        "capital": "Kabul",
        "language": {
            "code": "ps",
            "name": "Pashto"
        },
        "currency": {
            "code": "AFN",
            "name": "Afghan afghani",
            "symbol": "؋"
        }
    }

const test3 = country_info_by_name({capital:"Kabul"})
 {
        "dial_code": "+93",
        "code": "AF",
        "emoji": "🇦🇫",
        "phLength": 9,
        "country": "Afghanistan",
        "capital": "Kabul",
        "language": {
            "code": "ps",
            "name": "Pashto"
        },
        "currency": {
            "code": "AFN",
            "name": "Afghan afghani",
            "symbol": "؋"
        }
    }

Package Sidebar

Install

npm i country_full_info

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

189 kB

Total Files

10

Last publish

Collaborators

  • rakib17