🌎
country-info
  • Welcome!
  • Quick Start
  • Changelog
  • Reference
    • Functions
      • Get Continent Information
      • Get Country Information
      • Get All Countries Information
      • Get Country by Top-Level Domain
      • Search Countries
    • Function Signatures
    • Testing
Powered by GitBook
On this page

Was this helpful?

  1. Reference
  2. Functions

Get All Countries Information

The getAllCountries function allows you to get information about all available countries. You can specify the fields you want to retrieve as an array.

const { getAllCountries } = require('countrys-info');

// Get information about all countries
const allCountriesData = getAllCountries(['name_en', 'code_2']);
console.log(allCountriesData);
PreviousGet Country InformationNextGet Country by Top-Level Domain

Last updated 1 year ago

Was this helpful?