districts-of-bangladesh
v1.0.5
Published
Package for getting list of all the divisions or districts of Bangladesh
Downloads
4
Maintainers
Readme
Districts-of-Bangladesh
Installation
npm i districts-of-bangladesh
Usage
Get all the divisions as list:
import {GetAllDivisions} from 'districts-of-bangladesh'
var divisions = GetallDivisions() // returns all the 8 divisions of Bangladesh
Get all the districts ( unfiltered ):
import {GetDistrictsUnfiltered} from 'districts-of-bangladesh'
var districts = GetDistrictsUnfiltered() // returns all the 64 districts of Bangladesh sorted
Get districts under certain division:
import {GetDistrictsFiltered} from 'districts-of-bangladesh'
var districts = GetDistrictsFiltered("Chittgong") // returns a list of the districts in Chittagong.
Check if a given string is division or not:
import {IsADivision} from 'districts-of-bangladesh
var verdict = IsADivision("Chittagong") // returns true