2.0.2 • Published 9 months ago

info-nepal v2.0.2

Weekly downloads
24
License
MIT
Repository
github
Last release
9 months ago

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:- 1. An array containing the complete list of districts within Nepal. 2. An object mapping districts to their respective Provinces and Zones. 3. 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!