1.0.1 • Published 3 years ago
greek-lists v1.0.1
Greek Lists
An attempt to gather greek static lists in one place.
| Currently supported lists |
|---|
| Communities |
| Decentralized Administrations |
| Mountains |
| Municipalities |
| Municipal Units |
| Prefectures |
| Regional Units |
| Regions |
| Settlements |
Μια προσπάθεια να μαζέψουμε ελληνικές στατικές λίστες σε ένα σημείο.
| Λίστες που υποστηρίζονται |
|---|
| Κοινότητες |
| Αποκεντρωμένες Διοικήσεις |
| Βουνά |
| Δήμοι |
| Δημοτικές Ενότητες |
| Νομαρχίες |
| Περιφερειακές Ενότητες |
| Περιφέρειες |
| Οικισμοί |
Installation
npm install greek-listsor
yarn add greek-listsor
pnpm add greek-listsUsage/Examples
React example
import {regions} from 'greek-lists'
function App() {
return regions.map((region, index) => <div key={index}>{region}<div>)
}Output
Ανατολικής Μακεδονίας και Θράκης
Αττικής
Βορείου Αιγαίου
Δυτικής Ελλάδας
Δυτικής Μακεδονίας
Ηπείρου
Θεσσαλίας
Ιονίων Νήσων
Κεντρικής Μακεδονίας
Κρήτης
Νοτίου Αιγαίου
Πελοποννήσου
Στερεάς ΕλλάδαςAPI
| List | Type |
|---|---|
communities | string[] |
decentralizedAdministrations | string[] |
geographicalAreas | string[] |
mountains | Mountain[] check Mountain |
municipalities | string[] |
municipalUnits | string[] |
prefectures | string[] |
regionalUnits | string[] |
regions | string[] |
settlements | string[] |
{
name: string;
top: string;
height: number;
area: string;
prefecture: string;
}Contributing
Contributions are always welcome!
Feel free to add your list and create a pull request.