1.0.5 • Published 3 years ago

districts-of-bangladesh v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago