@bangladeshi/bangladesh-address
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Bangladesh Address (division, district, upazila)

It's a simple npm package that exports methods representing divisions, districts and upazilas of Bangladesh.

Usage:

Install:

npm i @bangladeshi/bangladesh-address

Import the package in your file to use it.

const address = require('@bangladeshi/bangladesh-address')

Methods:

Division

allDivision()

get array of all divisions

divisionalDataOf(DivisionName.Dhaka)

get every districts and upazilas of Dhaka division

Districts

districtOf(DivisionName.Dhaka)

get districts of Dhaka division

allDistrict()

get an array of all district names of Bangladesh

upazila

upazilasOf("tangail")

get all upazilas of Tangail

allUpazila()

get an array of all Upazilas

Types

DivisionName.Dhaka
DivisionName.Chattogram
DivisionName.Mymensingh
DivisionName.Khulna
DivisionName.Rajshahi
DivisionName.Rangpur
DivisionName.Sylhet
DivisionName.Barisal

Contribution

If you want to contribute please follow the guildline. Contribution

Package Sidebar

Install

npm i @bangladeshi/bangladesh-address

Weekly Downloads

94

Version

1.0.5

License

MIT

Unpacked Size

62.6 kB

Total Files

16

Last publish

Collaborators

  • rajuahmed1705