JSPM

iran-cities-json

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

iran cities and counties exported as arrays

Package Exports

  • iran-cities-json

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 (iran-cities-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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)