UNPKG

country_city_regions

Version:

Countries and there relevent cities and their regions. There are few countries which have regions included as well

16 lines (11 loc) 695 B
# countries-cities A node module to get countries and their related cities. ## Example usage ``` javascript var countries = require ('countries_cities_regions'); var getCountries = countries.getCountries(); // Returns an array of country names. var getCities = countries.getCities(country_name); // Returns an array of city names of the particualr country. var getRegionsIfProvided = countries.getCityRegions("India"); // Returns an array of region names of the particualr country. var getCitiesIfRegionNotProvided = countries.getCityRegions("Vietnam"); // Returns an array of city names of the particualr country with region node. # xelpmoc_countries_cities # Added vietnam as normal flow