JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 84
  • Score
    100M100P100Q69118F
  • License MIT

Countries, States, Cities JSON Database

Package Exports

  • country-city-state

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (country-city-state) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Countries, States, Cities JSON Database

Install

npm i --save country-city-state

Usage

const countryCityState = require('country-city-state')

const subjects = countryCityState.getCountryStates('RU')
const cities = countryCityState.getCountryCities('RU')

Countries

BY

KZ

RU

UA

Methods

getCountry(countryCode)

getState(stateId)

getCity(cityId)

getCountryStates(countryCode)

getCountryCities(countryCode)

getStateCities(stateId)