bd-geo-address 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/LICENSE +21 -0
- package/README.md +622 -0
- package/db/mongodb/bangladesh-address.json +29584 -0
- package/db/mysql/bangladesh-address.sql +3036 -0
- package/db/postgresql/bangladesh-address.sql +3034 -0
- package/db/sqlite/bangladesh-address.db +0 -0
- package/dist/index.d.mts +667 -0
- package/dist/index.d.ts +667 -0
- package/dist/index.js +29008 -0
- package/dist/index.mjs +28933 -0
- package/package.json +383 -0
package/package.json
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bd-geo-address",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Bangladesh geo address library — division/district/upazila/thana lookup, FHIR geocode resolution, Bangla name support, postal codes, geolocation. Works on Node.js, React, Next.js, Vue, Angular, NestJS and all major JS frameworks.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.esm.js",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"db",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"CHANGELOG.md"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --treeshake",
|
|
25
|
+
"build:data": "ts-node --project tsconfig.build.json scripts/build-data.ts",
|
|
26
|
+
"build:db": "ts-node --project tsconfig.build.json scripts/build-db.ts",
|
|
27
|
+
"build:coords": "python scripts/extract-coordinates.py",
|
|
28
|
+
"build:all": "npm run build:coords && npm run build:data && npm run build:db && npm run build",
|
|
29
|
+
"test": "jest --coverage",
|
|
30
|
+
"test:watch": "jest --watch",
|
|
31
|
+
"lint": "eslint src/**/*.ts tests/**/*.ts",
|
|
32
|
+
"lint:fix": "eslint src/**/*.ts tests/**/*.ts --fix",
|
|
33
|
+
"format": "prettier --write src/**/*.ts tests/**/*.ts",
|
|
34
|
+
"docs": "typedoc src/index.ts --out docs",
|
|
35
|
+
"prepublishOnly": "npm run build && npm test"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"bangladesh",
|
|
39
|
+
"bd",
|
|
40
|
+
"fhir",
|
|
41
|
+
"geocode",
|
|
42
|
+
"address",
|
|
43
|
+
"division",
|
|
44
|
+
"district",
|
|
45
|
+
"upazila",
|
|
46
|
+
"thana",
|
|
47
|
+
"union",
|
|
48
|
+
"postal",
|
|
49
|
+
"postcode",
|
|
50
|
+
"bangla",
|
|
51
|
+
"bengali",
|
|
52
|
+
"geo",
|
|
53
|
+
"dghs",
|
|
54
|
+
"location",
|
|
55
|
+
"hierarchy",
|
|
56
|
+
"bd-address",
|
|
57
|
+
"bangladesh-address",
|
|
58
|
+
"bangladesh-location",
|
|
59
|
+
"bd-geo-address"
|
|
60
|
+
],
|
|
61
|
+
"author": "",
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"repository": {
|
|
64
|
+
"type": "git",
|
|
65
|
+
"url": "git+https://github.com/yourusername/bd-geo-address.git"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/yourusername/bd-geo-address#readme",
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "https://github.com/yourusername/bd-geo-address/issues"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=14.0.0"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"typescript": "^5.0.0",
|
|
76
|
+
"tsup": "^8.0.0",
|
|
77
|
+
"ts-node": "^10.0.0",
|
|
78
|
+
"jest": "^29.0.0",
|
|
79
|
+
"ts-jest": "^29.0.0",
|
|
80
|
+
"@types/jest": "^29.0.0",
|
|
81
|
+
"@types/node": "^20.0.0",
|
|
82
|
+
"eslint": "^8.0.0",
|
|
83
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
85
|
+
"prettier": "^3.0.0",
|
|
86
|
+
"typedoc": "^0.25.0"
|
|
87
|
+
},
|
|
88
|
+
"directories": {
|
|
89
|
+
"example": "examples",
|
|
90
|
+
"test": "tests"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"acorn": "^8.17.0",
|
|
94
|
+
"acorn-jsx": "^5.3.2",
|
|
95
|
+
"acorn-walk": "^8.3.5",
|
|
96
|
+
"ajv": "^6.15.0",
|
|
97
|
+
"ansi-escapes": "^4.3.2",
|
|
98
|
+
"ansi-regex": "^5.0.1",
|
|
99
|
+
"ansi-sequence-parser": "^1.1.3",
|
|
100
|
+
"ansi-styles": "^4.3.0",
|
|
101
|
+
"any-promise": "^1.3.0",
|
|
102
|
+
"anymatch": "^3.1.3",
|
|
103
|
+
"arg": "^4.1.3",
|
|
104
|
+
"argparse": "^2.0.1",
|
|
105
|
+
"array-union": "^2.1.0",
|
|
106
|
+
"babel-jest": "^29.7.0",
|
|
107
|
+
"babel-plugin-istanbul": "^6.1.1",
|
|
108
|
+
"babel-plugin-jest-hoist": "^29.6.3",
|
|
109
|
+
"babel-preset-current-node-syntax": "^1.2.0",
|
|
110
|
+
"babel-preset-jest": "^29.6.3",
|
|
111
|
+
"balanced-match": "^1.0.2",
|
|
112
|
+
"baseline-browser-mapping": "^2.10.38",
|
|
113
|
+
"brace-expansion": "^2.1.1",
|
|
114
|
+
"braces": "^3.0.3",
|
|
115
|
+
"browserslist": "^4.28.2",
|
|
116
|
+
"bs-logger": "^0.2.6",
|
|
117
|
+
"bser": "^2.1.1",
|
|
118
|
+
"buffer-from": "^1.1.2",
|
|
119
|
+
"bundle-require": "^5.1.0",
|
|
120
|
+
"cac": "^6.7.14",
|
|
121
|
+
"callsites": "^3.1.0",
|
|
122
|
+
"camelcase": "^5.3.1",
|
|
123
|
+
"caniuse-lite": "^1.0.30001799",
|
|
124
|
+
"chalk": "^4.1.2",
|
|
125
|
+
"char-regex": "^1.0.2",
|
|
126
|
+
"chokidar": "^4.0.3",
|
|
127
|
+
"ci-info": "^3.9.0",
|
|
128
|
+
"cjs-module-lexer": "^1.4.3",
|
|
129
|
+
"cliui": "^8.0.1",
|
|
130
|
+
"co": "^4.6.0",
|
|
131
|
+
"collect-v8-coverage": "^1.0.3",
|
|
132
|
+
"color-convert": "^2.0.1",
|
|
133
|
+
"color-name": "^1.1.4",
|
|
134
|
+
"commander": "^4.1.1",
|
|
135
|
+
"concat-map": "^0.0.1",
|
|
136
|
+
"confbox": "^0.1.8",
|
|
137
|
+
"consola": "^3.4.2",
|
|
138
|
+
"convert-source-map": "^2.0.0",
|
|
139
|
+
"create-jest": "^29.7.0",
|
|
140
|
+
"create-require": "^1.1.1",
|
|
141
|
+
"cross-spawn": "^7.0.6",
|
|
142
|
+
"debug": "^4.4.3",
|
|
143
|
+
"dedent": "^1.7.2",
|
|
144
|
+
"deep-is": "^0.1.4",
|
|
145
|
+
"deepmerge": "^4.3.1",
|
|
146
|
+
"detect-newline": "^3.1.0",
|
|
147
|
+
"diff": "^4.0.4",
|
|
148
|
+
"diff-sequences": "^29.6.3",
|
|
149
|
+
"dir-glob": "^3.0.1",
|
|
150
|
+
"doctrine": "^3.0.0",
|
|
151
|
+
"electron-to-chromium": "^1.5.376",
|
|
152
|
+
"emittery": "^0.13.1",
|
|
153
|
+
"emoji-regex": "^8.0.0",
|
|
154
|
+
"error-ex": "^1.3.4",
|
|
155
|
+
"es-errors": "^1.3.0",
|
|
156
|
+
"esbuild": "^0.27.7",
|
|
157
|
+
"escalade": "^3.2.0",
|
|
158
|
+
"escape-string-regexp": "^4.0.0",
|
|
159
|
+
"eslint-scope": "^7.2.2",
|
|
160
|
+
"eslint-visitor-keys": "^3.4.3",
|
|
161
|
+
"espree": "^9.6.1",
|
|
162
|
+
"esprima": "^4.0.1",
|
|
163
|
+
"esquery": "^1.7.0",
|
|
164
|
+
"esrecurse": "^4.3.0",
|
|
165
|
+
"estraverse": "^5.3.0",
|
|
166
|
+
"esutils": "^2.0.3",
|
|
167
|
+
"execa": "^5.1.1",
|
|
168
|
+
"exit": "^0.1.2",
|
|
169
|
+
"expect": "^29.7.0",
|
|
170
|
+
"fast-deep-equal": "^3.1.3",
|
|
171
|
+
"fast-glob": "^3.3.3",
|
|
172
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
173
|
+
"fast-levenshtein": "^2.0.6",
|
|
174
|
+
"fastq": "^1.20.1",
|
|
175
|
+
"fb-watchman": "^2.0.2",
|
|
176
|
+
"file-entry-cache": "^6.0.1",
|
|
177
|
+
"fill-range": "^7.1.1",
|
|
178
|
+
"find-up": "^5.0.0",
|
|
179
|
+
"fix-dts-default-cjs-exports": "^1.0.1",
|
|
180
|
+
"flat-cache": "^3.2.0",
|
|
181
|
+
"flatted": "^3.4.2",
|
|
182
|
+
"fs.realpath": "^1.0.0",
|
|
183
|
+
"function-bind": "^1.1.2",
|
|
184
|
+
"gensync": "^1.0.0-beta.2",
|
|
185
|
+
"get-caller-file": "^2.0.5",
|
|
186
|
+
"get-package-type": "^0.1.0",
|
|
187
|
+
"get-stream": "^6.0.1",
|
|
188
|
+
"glob": "^7.2.3",
|
|
189
|
+
"glob-parent": "^6.0.2",
|
|
190
|
+
"globals": "^13.24.0",
|
|
191
|
+
"globby": "^11.1.0",
|
|
192
|
+
"graceful-fs": "^4.2.11",
|
|
193
|
+
"graphemer": "^1.4.0",
|
|
194
|
+
"handlebars": "^4.7.9",
|
|
195
|
+
"has-flag": "^4.0.0",
|
|
196
|
+
"hasown": "^2.0.4",
|
|
197
|
+
"html-escaper": "^2.0.2",
|
|
198
|
+
"human-signals": "^2.1.0",
|
|
199
|
+
"ignore": "^5.3.2",
|
|
200
|
+
"import-fresh": "^3.3.1",
|
|
201
|
+
"import-local": "^3.2.0",
|
|
202
|
+
"imurmurhash": "^0.1.4",
|
|
203
|
+
"inflight": "^1.0.6",
|
|
204
|
+
"inherits": "^2.0.4",
|
|
205
|
+
"is-arrayish": "^0.2.1",
|
|
206
|
+
"is-core-module": "^2.16.2",
|
|
207
|
+
"is-extglob": "^2.1.1",
|
|
208
|
+
"is-fullwidth-code-point": "^3.0.0",
|
|
209
|
+
"is-generator-fn": "^2.1.0",
|
|
210
|
+
"is-glob": "^4.0.3",
|
|
211
|
+
"is-number": "^7.0.0",
|
|
212
|
+
"is-path-inside": "^3.0.3",
|
|
213
|
+
"is-stream": "^2.0.1",
|
|
214
|
+
"isexe": "^2.0.0",
|
|
215
|
+
"istanbul-lib-coverage": "^3.2.2",
|
|
216
|
+
"istanbul-lib-instrument": "^6.0.3",
|
|
217
|
+
"istanbul-lib-report": "^3.0.1",
|
|
218
|
+
"istanbul-lib-source-maps": "^4.0.1",
|
|
219
|
+
"istanbul-reports": "^3.2.0",
|
|
220
|
+
"jest-changed-files": "^29.7.0",
|
|
221
|
+
"jest-circus": "^29.7.0",
|
|
222
|
+
"jest-cli": "^29.7.0",
|
|
223
|
+
"jest-config": "^29.7.0",
|
|
224
|
+
"jest-diff": "^29.7.0",
|
|
225
|
+
"jest-docblock": "^29.7.0",
|
|
226
|
+
"jest-each": "^29.7.0",
|
|
227
|
+
"jest-environment-node": "^29.7.0",
|
|
228
|
+
"jest-get-type": "^29.6.3",
|
|
229
|
+
"jest-haste-map": "^29.7.0",
|
|
230
|
+
"jest-leak-detector": "^29.7.0",
|
|
231
|
+
"jest-matcher-utils": "^29.7.0",
|
|
232
|
+
"jest-message-util": "^29.7.0",
|
|
233
|
+
"jest-mock": "^29.7.0",
|
|
234
|
+
"jest-pnp-resolver": "^1.2.3",
|
|
235
|
+
"jest-regex-util": "^29.6.3",
|
|
236
|
+
"jest-resolve": "^29.7.0",
|
|
237
|
+
"jest-resolve-dependencies": "^29.7.0",
|
|
238
|
+
"jest-runner": "^29.7.0",
|
|
239
|
+
"jest-runtime": "^29.7.0",
|
|
240
|
+
"jest-snapshot": "^29.7.0",
|
|
241
|
+
"jest-util": "^29.7.0",
|
|
242
|
+
"jest-validate": "^29.7.0",
|
|
243
|
+
"jest-watcher": "^29.7.0",
|
|
244
|
+
"jest-worker": "^29.7.0",
|
|
245
|
+
"joycon": "^3.1.1",
|
|
246
|
+
"js-tokens": "^4.0.0",
|
|
247
|
+
"js-yaml": "^4.2.0",
|
|
248
|
+
"jsesc": "^3.1.0",
|
|
249
|
+
"json-buffer": "^3.0.1",
|
|
250
|
+
"json-parse-even-better-errors": "^2.3.1",
|
|
251
|
+
"json-schema-traverse": "^0.4.1",
|
|
252
|
+
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
253
|
+
"json5": "^2.2.3",
|
|
254
|
+
"jsonc-parser": "^3.3.1",
|
|
255
|
+
"keyv": "^4.5.4",
|
|
256
|
+
"kleur": "^3.0.3",
|
|
257
|
+
"leven": "^3.1.0",
|
|
258
|
+
"levn": "^0.4.1",
|
|
259
|
+
"lilconfig": "^3.1.3",
|
|
260
|
+
"lines-and-columns": "^1.2.4",
|
|
261
|
+
"load-tsconfig": "^0.2.5",
|
|
262
|
+
"locate-path": "^6.0.0",
|
|
263
|
+
"lodash.memoize": "^4.1.2",
|
|
264
|
+
"lodash.merge": "^4.6.2",
|
|
265
|
+
"lru-cache": "^5.1.1",
|
|
266
|
+
"lunr": "^2.3.9",
|
|
267
|
+
"magic-string": "^0.30.21",
|
|
268
|
+
"make-dir": "^4.0.0",
|
|
269
|
+
"make-error": "^1.3.6",
|
|
270
|
+
"makeerror": "^1.0.12",
|
|
271
|
+
"marked": "^4.3.0",
|
|
272
|
+
"merge-stream": "^2.0.0",
|
|
273
|
+
"merge2": "^1.4.1",
|
|
274
|
+
"micromatch": "^4.0.8",
|
|
275
|
+
"mimic-fn": "^2.1.0",
|
|
276
|
+
"minimatch": "^9.0.3",
|
|
277
|
+
"minimist": "^1.2.8",
|
|
278
|
+
"mlly": "^1.8.2",
|
|
279
|
+
"ms": "^2.1.3",
|
|
280
|
+
"mz": "^2.7.0",
|
|
281
|
+
"natural-compare": "^1.4.0",
|
|
282
|
+
"neo-async": "^2.6.2",
|
|
283
|
+
"node-int64": "^0.4.0",
|
|
284
|
+
"node-releases": "^2.0.48",
|
|
285
|
+
"normalize-path": "^3.0.0",
|
|
286
|
+
"npm-run-path": "^4.0.1",
|
|
287
|
+
"object-assign": "^4.1.1",
|
|
288
|
+
"once": "^1.4.0",
|
|
289
|
+
"onetime": "^5.1.2",
|
|
290
|
+
"optionator": "^0.9.4",
|
|
291
|
+
"p-limit": "^3.1.0",
|
|
292
|
+
"p-locate": "^5.0.0",
|
|
293
|
+
"p-try": "^2.2.0",
|
|
294
|
+
"parent-module": "^1.0.1",
|
|
295
|
+
"parse-json": "^5.2.0",
|
|
296
|
+
"path-exists": "^4.0.0",
|
|
297
|
+
"path-is-absolute": "^1.0.1",
|
|
298
|
+
"path-key": "^3.1.1",
|
|
299
|
+
"path-parse": "^1.0.7",
|
|
300
|
+
"path-type": "^4.0.0",
|
|
301
|
+
"pathe": "^2.0.3",
|
|
302
|
+
"picocolors": "^1.1.1",
|
|
303
|
+
"picomatch": "^2.3.2",
|
|
304
|
+
"pirates": "^4.0.7",
|
|
305
|
+
"pkg-dir": "^4.2.0",
|
|
306
|
+
"pkg-types": "^1.3.1",
|
|
307
|
+
"postcss-load-config": "^6.0.1",
|
|
308
|
+
"prelude-ls": "^1.2.1",
|
|
309
|
+
"pretty-format": "^29.7.0",
|
|
310
|
+
"prompts": "^2.4.2",
|
|
311
|
+
"punycode": "^2.3.1",
|
|
312
|
+
"pure-rand": "^6.1.0",
|
|
313
|
+
"queue-microtask": "^1.2.3",
|
|
314
|
+
"react-is": "^18.3.1",
|
|
315
|
+
"readdirp": "^4.1.2",
|
|
316
|
+
"require-directory": "^2.1.1",
|
|
317
|
+
"resolve": "^1.22.12",
|
|
318
|
+
"resolve-cwd": "^3.0.0",
|
|
319
|
+
"resolve-from": "^4.0.0",
|
|
320
|
+
"resolve.exports": "^2.0.3",
|
|
321
|
+
"reusify": "^1.1.0",
|
|
322
|
+
"rimraf": "^3.0.2",
|
|
323
|
+
"rollup": "^4.62.2",
|
|
324
|
+
"run-parallel": "^1.2.0",
|
|
325
|
+
"semver": "^7.8.5",
|
|
326
|
+
"shebang-command": "^2.0.0",
|
|
327
|
+
"shebang-regex": "^3.0.0",
|
|
328
|
+
"shiki": "^0.14.7",
|
|
329
|
+
"signal-exit": "^3.0.7",
|
|
330
|
+
"sisteransi": "^1.0.5",
|
|
331
|
+
"slash": "^3.0.0",
|
|
332
|
+
"source-map": "^0.6.1",
|
|
333
|
+
"source-map-support": "^0.5.13",
|
|
334
|
+
"sprintf-js": "^1.0.3",
|
|
335
|
+
"stack-utils": "^2.0.6",
|
|
336
|
+
"string-length": "^4.0.2",
|
|
337
|
+
"string-width": "^4.2.3",
|
|
338
|
+
"strip-ansi": "^6.0.1",
|
|
339
|
+
"strip-bom": "^4.0.0",
|
|
340
|
+
"strip-final-newline": "^2.0.0",
|
|
341
|
+
"strip-json-comments": "^3.1.1",
|
|
342
|
+
"sucrase": "^3.35.1",
|
|
343
|
+
"supports-color": "^7.2.0",
|
|
344
|
+
"supports-preserve-symlinks-flag": "^1.0.0",
|
|
345
|
+
"test-exclude": "^6.0.0",
|
|
346
|
+
"text-table": "^0.2.0",
|
|
347
|
+
"thenify": "^3.3.1",
|
|
348
|
+
"thenify-all": "^1.6.0",
|
|
349
|
+
"tinyexec": "^0.3.2",
|
|
350
|
+
"tinyglobby": "^0.2.17",
|
|
351
|
+
"tmpl": "^1.0.5",
|
|
352
|
+
"to-regex-range": "^5.0.1",
|
|
353
|
+
"tree-kill": "^1.2.2",
|
|
354
|
+
"ts-api-utils": "^1.4.3",
|
|
355
|
+
"ts-interface-checker": "^0.1.13",
|
|
356
|
+
"type-check": "^0.4.0",
|
|
357
|
+
"type-detect": "^4.0.8",
|
|
358
|
+
"type-fest": "^0.20.2",
|
|
359
|
+
"ufo": "^1.6.4",
|
|
360
|
+
"uglify-js": "^3.19.3",
|
|
361
|
+
"undici-types": "^6.21.0",
|
|
362
|
+
"update-browserslist-db": "^1.2.3",
|
|
363
|
+
"uri-js": "^4.4.1",
|
|
364
|
+
"v8-compile-cache-lib": "^3.0.1",
|
|
365
|
+
"v8-to-istanbul": "^9.3.0",
|
|
366
|
+
"vscode-oniguruma": "^1.7.0",
|
|
367
|
+
"vscode-textmate": "^8.0.0",
|
|
368
|
+
"walker": "^1.0.8",
|
|
369
|
+
"which": "^2.0.2",
|
|
370
|
+
"word-wrap": "^1.2.5",
|
|
371
|
+
"wordwrap": "^1.0.0",
|
|
372
|
+
"wrap-ansi": "^7.0.0",
|
|
373
|
+
"wrappy": "^1.0.2",
|
|
374
|
+
"write-file-atomic": "^4.0.2",
|
|
375
|
+
"y18n": "^5.0.8",
|
|
376
|
+
"yallist": "^3.1.1",
|
|
377
|
+
"yargs": "^17.7.3",
|
|
378
|
+
"yargs-parser": "^21.1.1",
|
|
379
|
+
"yn": "^3.1.1",
|
|
380
|
+
"yocto-queue": "^0.1.0"
|
|
381
|
+
},
|
|
382
|
+
"type": "commonjs"
|
|
383
|
+
}
|