info-nepal
v2.0.2
Published
List districts of Nepal on the basis of zone and provinces.
Downloads
5
Readme
Info Nepal
Feb. 05, 2020
Have you ever wanted to effortlessly display address information in a dropdown menu or an existing form? Do you wish to access this data in a straightforward and convenient manner, all without the need for hard-coding? If so, then 'info-nepal' is the solution you've been seeking.
Description
Info Nepal is a compact npm package that furnishes the following data:-
- An array containing the complete list of districts within Nepal.
- An object mapping districts to their respective Provinces and Zones.
- An object delineating local bodies (municipalities) corresponding to their respective districts.
Install
npm i info-nepal
or
yarn add info-nepal
Usage
const infoNepal = require('info-nepal');
// Load core infoNepal.
const allDistricts = infoNepal.allDistricts;
// Load all districts of Nepal.
const districtsOfProvince = infoNepal.districtsOfProvince;
// Load respective districts of provinces.
const districtsOfZone = infoNepal.districtsOfZone;
// Load respective districts of zones(before province).
const localBodies = infoNepal.localBodies;
// Load localBodies i.e. municipalities & rural municipalities of respective districts.
Devanagari support
const infoNepal = require('info-nepal');
// Load core infoNepal.
const allDistrictsInDevanagari = infoNepal.allDistrictsInDevanagari;
// Load all districts of Nepal in Devanagari.
const districtsOfProvinceInDevanagari = infoNepal.districtsOfProvinceInDevanagari;
// Load respective districts of provinces in Devanagari.
const localBodiesInDevanagari = infoNepal.localBodiesInDevanagari;
// Load localBodies i.e. municipalities & rural municipalities of respective districts in Devanagari.
Contribution ✨
Thanks goes to these wonderful people:
This project adheres to the all-contributors specification, and we welcome contributions of any kind!