bd_geolocation_api_typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • 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 bd_geolocation_api_typescript

Weekly Downloads

6

Version

1.0.3

License

ISC

Unpacked Size

608 kB

Total Files

8

Last publish

Collaborators

  • accelero