afg-provinces
v1.0.6
Published
List of all provinces of Afghanistan with their respective districs
Downloads
22
Maintainers
Readme
What is this?
Get list of all Afghanistan's Provinces with their respective districts in Persian and English Language
Installation
npm install afg-provinces --save
Usage
import {provinces} from 'afg-provinces';
then:
let provincesList = provinces("En"); // Returns English list (Default Return)
let provincesList = provinces("Fa"); // Returns Persian/Farsi list
List is array of objects
get Provinces
//print provinces list
provincesList.map(province =>province.label)
//get districts list
provincesList.map(province =>province.districts)