→ كل المشاريع

dz-wilayas

بواسطة @ay-ub

18

عن هذا المشروع

dz-wilayas A lightweight utility package for accessing and filtering Algerian province (wilaya) data. Installation Usage API getAllWilayas() Returns all available wilayas as an array of objects. getWilayaByCode(code) Finds a wilaya by its code. Parameters: code (number string) - The code of the wilaya Returns: The wilaya object Throws: Error if wilaya with specified code is not found getWilayaByName(name) Finds a wilaya by its name (case-insensitive). Parameters: name (string) - The name of the wilaya Returns: The wilaya object Throws: Error if wilaya with specified name is not found getWilayaByArName(arname) Finds a wilaya by its Arabic name (case-insensitive). Parameters: arname (string) - The Arabic name of the wilaya Returns: The wilaya object Throws: Error if wilaya with specified Arabic name is not found getWilayaByRegion(region) Finds all wilayas in a specific region (case-insensitive). Parameters: region (string) - The region name to filter by Returns: Array of wilaya objects in the specified region Throws: Error if no wilayas are found in the specified region License MIT

من ملف README الخاص بالمشروع على GitHub

النجوم
18
التفريعات
0
الرخصة
MIT
آخر تحديث
07/06/2025

أضف هذه الشارة إلى ملف README

أظهر أن مشروعك مُدرج على «صُنع في الجزائر».

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/dz-wilayas.svg)](https://www.madeinalgeria.dev/projects/dz-wilayas)

مشاريع ذات صلة