countries-data-all

0.0.7 • Public • Published

Countries-data-all

Library includes all simple data about all country - name, image flag, phone code, iso2, iso3

Installation

npm i countries-data-all

Usage

Import to your file

import { countriesData } from 'countries-data-all'

or

const { countriesData } = require('countries-data-all')

You will get an array of the form:

[
  {
    country: "Abkhazia",
    countryCodes: ["7840"],
    flag: "./src/ab.svg",
    isoCode2: "AB",
    isoCode3: "ABH",
  },
  {
    country: "Afghanistan",
    countryCodes: ["93"],
    flag: "./src/af.svg",
    isoCode2: "AF",
    isoCode3: "AFG",
  },
]

Package Sidebar

Install

npm i countries-data-all

Weekly Downloads

7

Version

0.0.7

License

ISC

Unpacked Size

371 kB

Total Files

245

Last publish

Collaborators

  • alexey_manc