# country-city-state

> Countries, Regions (States), Cities JSON Database

Latest version **1.0.9** (published 2020-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install country-city-state
pnpm add country-city-state
yarn add country-city-state
bun add country-city-state
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2020-04-05 |
| First published | 2020-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 178.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pavel Wolf |
| Maintainers | pavelwolfdark |
| Keywords | country, city, state, region, countries, cities, states, regions, json, database, db |

## Links

- npm: https://www.npmjs.com/package/country-city-state
- Repository: https://github.com/darkwolf/country-city-state
- Homepage: https://github.com/darkwolf/country-city-state#readme
- Issues: https://github.com/darkwolf/country-city-state/issues
- npm.io page: https://npm.io/package/country-city-state

## Dependencies (2)

- [@darkwolf/hash](https://npm.io/package/@darkwolf/hash.md) ^1.0.3
- [@darkwolf/code-error](https://npm.io/package/@darkwolf/code-error.md) ^13.21.69

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.9 (latest) — 2020-04-05
- 1.0.8 — 2020-03-28
- 1.0.7 — 2020-03-23
- 1.0.6 — 2020-03-23
- 1.0.5 — 2020-03-23
- 1.0.4 — 2020-03-21
- 1.0.3 — 2020-03-20
- 1.0.2 — 2020-03-20
- 1.0.1 — 2020-03-19
- 1.0.0 — 2020-03-16

## README

# Countries, States, Cities JSON Database
## Install
```sh
npm i --save country-city-state
```
## Usage
```javascript
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)

---
_Source: https://npm.io/package/country-city-state · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
