0.2.2 • Published 5 years ago

@veriown/country-state-region v0.2.2

Weekly downloads
2
License
UNLICENSED
Repository
-
Last release
5 years ago

Installation

npm install --save @veriown/country-state-region

Usage

  1. Import the functions.
const { getCountries, getStatesForCountry, getRegionsForState } =  require('@veriown/country-state-region');
  1. Use wherever you want.
getCountries();  
/* output format: [
    {
        "name": "India",
        "geonameId": 1269750,
        "code": "in"
    },
    ...
] */

getStatesForCountry();
/* output format:
[
    {
        "name": "Andaman and Nicobar",
        "geonameId": 1278647,
        "code": "in:andaman-and-nicobar"
    },
    ...
] */    
    
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

6 years ago