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.
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.
npm i info-nepal
or
yarn add info-nepal
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.
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.
Thanks goes to these wonderful people:
Aju Tamang |
Anwesh Budhathoki |
Shivaji Chalise |
Sandip Basnet |
This project adheres to the all-contributors specification, and we welcome contributions of any kind!