@veriown/country-state-region

0.2.2 • Public • Published

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"
    },
    ...
] */    

Readme

Keywords

none

Package Sidebar

Install

Weekly Downloads

1

Version

0.2.2

License

UNLICENSED

Unpacked Size

167 kB

Total Files

92

Last publish

Collaborators

  • dwarner_veriown
  • nareshthakur
  • rupinder02
  • charantor