np-pro-muni-dist
v1.1.11
Published
This is a package for getting the province, district, municipality of nepal
Downloads
9
Maintainers
Readme
Fast, and easily accessable npm package Node.js.
const npProMuniDist = require('np-pro-muni-dist')
## Installation
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/).
Before installing, [download and install Node.js](https://nodejs.org/en/download/).
Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a `package.json` first with
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).
Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
```console
$ npm install np-pro-muni-dist
Features
- Easy to use
- Focus on high performance
- Executable for generating applications quickly
Examples
const npProMuniDist = require('np-pro-muni-dist');
const provinces = npProMuniDist.getAllProvince(); (Returns all provinces of nepal)
Available methods
getAllProvince(); (To get all provinces)
getSingleProvince('lumbini'); (To get single province by value)
getAllDistricts(); (To get all districts)
getSingleDistrict('gulmi'); (To get single district by value)
getDistrictsByProvince('lumbini'); (To get single district by value)
getMunicipalities(); (To get all municipalities)
getSingleMunicipality('gulmidarwar-rural-municipality'); (To get single municipality by value)
getMunicipalitiesByDistrict('gulmi'); (To get municipalities by district)