A list of all cities in morocco with it region
yarn add morocco-cities
const { cities } = require("morocco-cities");
it's will return an array of objects like this
[
{
"id": 102,
"region_number": 7,
"name": "Marrakech",
"region_name": "Marrakech-Safi",
"uniq_id": "city_80f346f3-7177-44bd-a79c-5a9235d65ea1"
}
]
Note: the uniq_id
property is not constant, that mean it's will changing on every version
const { regions } = require("morocco-cities");
it's will return an array of objects like this
[
{
"id": 12,
"cities_count": 2,
"cities_list": ["Awsard", "Oued-Eddahab"],
"name": "Dakhla-Oued Ed Dahab"
}
]
const { citisCount, regionsCount } = require("morocco-cities");
I want to say Thanks for Alaouy because i'm using his repository data