Socket
Socket
Sign inDemoInstall

country-city-state

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    country-city-state

Countries, Regions (States), Cities JSON Database


Version published
Weekly downloads
3
Maintainers
1
Install size
188 kB
Created
Weekly downloads
 

Readme

Source

Countries, States, Cities JSON Database

Install

npm i --save country-city-state

Usage

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

const regions = countryCityState.getCountryRegions('RU')
const cities = countryCityState.getCountryCities('RU')

Countries

BY

KZ

RU

UA

Methods

getCountry(countryCode)

getRegion(regionCode)

getCity(cityId)

getCountryRegions(countryCode)

getCountryCities(countryCode)

getRegionCities(regionCode)

Keywords

FAQs

Last updated on 05 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc