iran-cities-json
v2.0.0
Published
iran cities and counties exported as arrays
Downloads
65
Maintainers
Readme
iran-cities-json
This module exports two arrays:
- shahr
- ostan
shahrs and ostans are related by id
Usage
yarn add iran-cities-json
#or
npm i iran-cities-json
const { shahr, ostan } = require('iran-cities-json');
My small note on usage
you can use the ids provided here on ui and backend validation and only store ids in db and don't worry about relations after that.
Credits
All of the credits goes to work of ahmadazizi
Make sure to thank him ;)
changelog
1.0.0
released based on v2.0 release of ahmadazizi's work
2.0.0
removed numbered duplicate names of cities (ids are intact)