ethiopia-region-zone-woreda-package
v1.0.2
Published
ethiopia-regions-zones-woredas is a comprehensive NPM package providing data about the regions, zones, and woredas of Ethiopia. This package is designed to help developers integrate Ethiopian administrative divisions into their applications seamlessly.
Downloads
39
Maintainers
Readme
ethiopia-region-zone-woreda-package
A package to manage and retrieve information about regions, zones, and woredas in Ethiopia.
suport this project by donating
Installation
To install the package, run:
npm install ethiopia-region-zone-woreda-package
Usage
To use the package, first import it into your JavaScript file:
import { getRegions, getZones, getWoredas } from 'ethiopia-region-zone-woreda-package';
Example
Here's a basic example of how to use the functions:
// Get all regions
const regions = getRegions();
console.log(regions);
// Get zones in a specific region
const zoneNames = getZones('Amhara');
console.log(zoneNames);
// Get woredas in a specific zone
const woredaNames = getWoredas('Bahir Dar');
console.log(woredaNames);
Functions
getRegions() Returns an array of region names in Ethiopia.
getZones(regionName) Returns an array of zone names for the specified region.
getWoredas(zoneName) Returns an array of woreda names for the specified zone.
Contributing
If you would like to contribute to this package, please follow these steps:
Fork the repository. Create a new branch (git checkout -b feature-branch). Make your changes and commit them (git commit -m 'Add new feature'). Push to the branch (git push origin feature-branch). Create a pull request.
License This package is licensed under the MIT License.
Contact
For any inquiries or issues, please contact (mailto:[email protected], mailto:[email protected] ).