Feb. 05, 2020
Ever had the urge to show address information in dropdown or any pre existing form? And wanted to access the data in some sane, easy way? Don't want to hard code the data, for whatever reason? Then info-nepal is what you're looking for!
Info Nepal is a tiny npm package that provides following data:-
- The list of the districts of Nepal in an array.
- List of districts of Nepal with respect to Provinces & Zones as an object.
- List of local bodies(i.e. municipalities) of respective districts as an object.
$ npm i 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.
Thanks goes to these wonderful people:
Aju Tamang |
Anwesh Budhathoki |
Sandip Basnet |
This project follows the all-contributors specification. Contributions of any kind welcome!