{"_id":"@amiearth/thai-address-finder","_rev":"15-96f2d078c6d2ba0018db786fcb209e25","name":"@amiearth/thai-address-finder","dist-tags":{"latest":"0.0.16"},"versions":{"0.0.2":{"name":"@amiearth/thai-address-finder","version":"0.0.2","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.2","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"dist":{"shasum":"948d5fb2d87be342a65d82e50ba89d990ce99802","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.2.tgz","fileCount":31,"integrity":"sha512-cU8TCXfP2+EH8wbyEDzdhPotbVa2WH/s++gN7fZOgMjXfg8M/Cehi6Ku/5jb4+Io8cjPurzD7upFPV5Gk0eTYA==","signatures":[{"sig":"MEYCIQDYgJ7WYApUinOPEJSv0oiPbJwPoJmQuDa6oetmm0roCwIhAL2UunTQrFsT44W/mjaKb9CepibSlSd7mcINAnbt/xHi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3314491},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.2_1764861938513_0.07287339106527813","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@amiearth/thai-address-finder","version":"0.0.3","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.3","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"dist":{"shasum":"fae784ea7f9da32590a0ce39d6c9e1ba281a41c3","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.3.tgz","fileCount":31,"integrity":"sha512-XxaYaQw8s4kikZnrHUcwi+sILsliy6wozmxtZrhNg++PiOigy91Zjz+XVqlVqTc6cL95Kd+bz7g1BbD0uVAGpw==","signatures":[{"sig":"MEUCIFtWdDxJMUonSF7OjwLGOhZhszQhFFddQElyh4WX6ffWAiEA3geh9k2Fq/0HMD5C7vqyDnrFKSP5bhjye9BPLvuEItU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3314491},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.3_1764863326524_0.5087867054439672","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@amiearth/thai-address-finder","version":"0.0.4","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.4","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"8ad2c6fd7734295019e910925f53abe9f05e222f","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.4.tgz","fileCount":31,"integrity":"sha512-P+Yy+pPCzaND5SHEJedTLVFwvNai8Puh87HUPYUzvBX1i0HF4ajAcuaQztds7wgXCN/jeFBS9fIXWK3belhBEQ==","signatures":[{"sig":"MEQCIE5fVtU6vt+eMWoeA97Ak7DAmfWtUUf+2QFwYsKqlDChAiAPnsMLAP5We4im0/U3Z4G90QlEql88r+80QKXIw9W5nA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3314755},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"08c762ceb4de88f999569447cffc650bf9b732be","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.4_1764863531104_0.130352043948059","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@amiearth/thai-address-finder","version":"0.0.5","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.5","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"af718a9a7505dd8adaa969f8ffdb07b57848ba0a","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.5.tgz","fileCount":38,"integrity":"sha512-IMjb3odZ1wHSp6VU47ne5yXFBC/XqANuiv44T73qN90NcsHeSJztMqssf1CpE5wsweAQcYuUEb/davBw2Zvxtw==","signatures":[{"sig":"MEUCIDqOc0uGlbq+WyqETlLNmR7x4ziSxmThFiNRdnYEz2zfAiEA/sdBztZNYFgSgR81wietyKShYEMLPb5ib6bWH6h68hE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7633346},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9fab4eee17eca35982da04a0bc810ac9de2455cb","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"npm run build:data && tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.5_1764906415665_0.11437473161997969","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@amiearth/thai-address-finder","version":"0.0.6","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.6","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"d51f4da821d82a472630107ddd8aa1ae3bcdd4bc","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.6.tgz","fileCount":34,"integrity":"sha512-FnEwKCIUxOuBUS4gkch/2dmmbLJ4gPI+M3edcG8vpKDKb2zEmX+365UfTcB1fUbtS4ItAlfsEFapRtjrCkozxw==","signatures":[{"sig":"MEUCIQC6tj/j6saUfAQXY0o7OP1Y5uHYYjwYE20Z9SFHzyDgQwIgS2p/TX6Gyohbn5UwtRIjgsI+xcXZnunLU9hSejYLaYk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3837299},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ecffa678d6f02b679b2102ae8a435a464cb34101","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"npm run build:data && tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.6_1764907187927_0.6922814904988535","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@amiearth/thai-address-finder","version":"0.0.7","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.7","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"96ef04df3b3bd062b0f33b824e6ac1e91ffdbc7a","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.7.tgz","fileCount":30,"integrity":"sha512-mM2JMWwWl2ktaB+Ylzb5XONoinWNDb6S78vOXLlivbk3fxDA50DmNNEJqW6Ko3x7cml4aYO2coxA80RevrhI1g==","signatures":[{"sig":"MEUCIQCOrU0EiNCO3t7CJjxXuWsJL0Ohyz0y8VPe/iLKavxw0AIgewUg+QlumO3pviWPOvRLzWrnHk2zY5moPwz9lTty4wc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43078},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3ef71e9326f2db07e4bc379a40adaa9a741f5177","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.7_1764907917768_0.10991972075945977","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@amiearth/thai-address-finder","version":"0.0.8","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.8","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"cab15dfb418585f1befb8ce546f7e2113b9c2f1b","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.8.tgz","fileCount":30,"integrity":"sha512-LG7jiXcUspj4y/k0D+b86gPqHu8Qcr4MLcRUkW6clLRfig4UCiFzSxOmG22o8p28CRk02p8XFCmyI+HV/T/I1g==","signatures":[{"sig":"MEQCIHZMVnDzzS1PzKJqRJ3q78SMZpiQ9j+51p9sP97gMJa8AiBwiKuLV5Kyrz8bnxXBsqERPCmCNAolh9XrDhQo7Lc2Eg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43078},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"76b94dcfb49b7e008bc4df2b0a8bf31e675c3c52","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.8_1764908248193_0.8632872966775555","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@amiearth/thai-address-finder","version":"0.0.9","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.9","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"3f5ddc8a8181af70dbd2c1c2fdfb9aae6e8301ee","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.9.tgz","fileCount":30,"integrity":"sha512-cUaN3iihDzlqnJkeNUWWUZ8Se4zRol3rbK9GN+IsHrF0aLXoxNrXpNGB/CMZEKgjA4CiCvdfcusL5b69bjKbnA==","signatures":[{"sig":"MEYCIQCd0ZLvIh3ZvwrREAibKVTpSlTDm++g8TbxbSIWXsxSlQIhAL0WA5RlS2VoHgeAqaumIqcbeav4sDYM5TKA1Yxbij6q","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44394},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"50e51119299a81eca2298941b5ded83ff1e1fd49","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.9_1764909016106_0.8442778480993427","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@amiearth/thai-address-finder","version":"0.0.10","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.10","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"fc95a29a1232963aa5f3451ff31384407eed164b","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.10.tgz","fileCount":30,"integrity":"sha512-Jy3TTSgZ0tB+wQwH0y4vA004E/rttTodJ3lT6tcSHTn1nLITcAvkPU9pJfZ/qd65qhEluDxY8TKJLbpJwEb3wQ==","signatures":[{"sig":"MEQCIDULJm5xbD0cCmZPjtrcAHxDr88V8Q/7j6lLDdfX+i1OAiAlmnTnIq/54Sq6Y2D25lR6vQh+S61hRxLK2479FY0L7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45066},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"403c925605ac22e61c117aee28dce9f978e66590","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.10_1764909199914_0.5187092719576785","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@amiearth/thai-address-finder","version":"0.0.11","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.11","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"54ba360531ac7426e0a14d15355f54ed8ace0851","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.11.tgz","fileCount":30,"integrity":"sha512-qLVO0GwcC8UZC1kvH316H5fdyXxUjOP02jWsm+4FCYg94TveQLNM7sAHrDZS2QHD5lQjfw+Nc5mG4BMpGKsXhw==","signatures":[{"sig":"MEQCIGgRbwgcuJggubVykSK+7JBfCIX44vfzv/tGSSRmO2ayAiAue5O9nGbLnPZoSoYUmv9rEs9kWJX1kZwPxmxiA14qdw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48322},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5c7f2aeaa582a397668bb294c3825c2db5567a67","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.11_1764909519660_0.30432487394161645","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@amiearth/thai-address-finder","version":"0.0.12","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.12","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://github.com/earth774/thai-address-finder#readme","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"9dc9a536230dc8ef26fd328a47ffc66644267fe8","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.12.tgz","fileCount":30,"integrity":"sha512-kjOEEc0Dm3t11IMSCKq9uelTM/GWX4gItfGiAHmuXycBwijggUoNwuCsyXMD7Sq81yWe7eB/maCpBrOFvKgvdg==","signatures":[{"sig":"MEUCIQDimCEu8jXYTMtqm83fVT+2nEr9UacHoKC1rCMl6Q6S/QIgKBgj+aHLmicWAdb4RvG7nQFa+k4tzd+i9NSvp2zb3w0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49189},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e6a4cc4352a591cb3a62f161ea145f5c1e1ed52b","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.12_1764909659626_0.9434871487771819","host":"s3://npm-registry-packages-npm-production"}},"0.0.13":{"name":"@amiearth/thai-address-finder","version":"0.0.13","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.13","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://earth774.github.io/thai-address-finder-demo/","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"74ac4a61a2b1771582b409935c35e0adc5105570","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.13.tgz","fileCount":30,"integrity":"sha512-AGZ9Bo6RHOUEuGTg9I4vpzgs097LM280vtSq0yjsE5/heAJrqKfsmRcgWTXEP/u5TSMasEEG3P20Z94dTx8dww==","signatures":[{"sig":"MEQCIGf1tK8qmghkN89qhtB5Jo3w5FrZSO1e1b2yArlnMRdMAiBTlw7wnvG4ur/N5MYgZ7/bNUDa48trADrym5tA5Q9oRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50413},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7365812138e96daf2d568b564cfe7c7b0e7f8dbb","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.13_1764911343827_0.696968599388837","host":"s3://npm-registry-packages-npm-production"}},"0.0.14":{"name":"@amiearth/thai-address-finder","version":"0.0.14","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.14","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://earth774.github.io/thai-address-finder-demo/","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"0074f62a8aa79c534798e9aed2065ae661c9343d","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.14.tgz","fileCount":34,"integrity":"sha512-CPQKoFuR9Rj8+Xv582cQDOr6Z8fc3ymN8cC9LpGdRAPy4kfohEKyuhSegpsYRPWxv/xpV+aSvw2nkkPUM+K2Jw==","signatures":[{"sig":"MEYCIQD/p2Mn9YRZ8OtZ8ec7XSAdTVPYrglAWLfT78D7C2zt1gIhAKFdpU84ESYkAPLKj/l4dC6Zu3hya4t9znK9frF6lqLe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3847473},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3fa6cdfea9d0edc91495fc4efc46392d57fa69e5","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.14_1764945382740_0.6346367774551029","host":"s3://npm-registry-packages-npm-production"}},"0.0.15":{"name":"@amiearth/thai-address-finder","version":"0.0.15","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","_id":"@amiearth/thai-address-finder@0.0.15","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"homepage":"https://earth774.github.io/thai-address-finder-demo/","bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"dist":{"shasum":"a1b78bb87f6131b0ff3bd7464c3255e8b9c32018","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.15.tgz","fileCount":34,"integrity":"sha512-NQSC7uQkiTr1EiuGczy2R1njvzGZkJbUHIsVr/SUgMhtEbGSugnqEc69e1gYhFKVQ9CCTcRYIj/CZRw+0S8Glw==","signatures":[{"sig":"MEQCIC4pjEfjCD1WqdYMm60rXVpXBMDYiQv8yRIMid5RjRy9AiA7cvDzW0Ub7WoXCR6Sj/M/vay2KYj4PCqVvikY7T8NsQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4741563},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"44d6d2be8d3673833815d2784a4f10038d79ce2b","scripts":{"lint":"eslint src tests --ext .ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","lint:fix":"eslint src tests --ext .ts --fix","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","pack:dry-run":"npm pack --dry-run","publish:major":"npm version major && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:patch":"npm version patch && npm publish --access public","test:coverage":"jest --coverage","prepublishOnly":"npm run build:data && npm run build"},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"repository":{"url":"git+https://github.com/earth774/thai-address-finder.git","type":"git"},"_npmVersion":"11.3.0","description":"A library to search and find Thai address information","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.56.0","express":"^4.18.2","ts-jest":"^29.1.2","prettier":"^3.2.4","typescript":"^5.3.3","@types/jest":"^29.5.12","@types/node":"^20.11.5","compression":"^1.7.4","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^6.19.1","@typescript-eslint/eslint-plugin":"^6.19.1"},"_npmOperationalInternal":{"tmp":"tmp/thai-address-finder_0.0.15_1764945628720_0.1422689067755587","host":"s3://npm-registry-packages-npm-production"}},"0.0.16":{"name":"@amiearth/thai-address-finder","version":"0.0.16","description":"A library to search and find Thai address information","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.build.json","build:data":"node scripts/minify-addresses.js","serve:data":"node scripts/serve-data-server.js","pack:dry-run":"npm pack --dry-run","test":"jest","test:coverage":"jest --coverage","lint":"eslint src tests --ext .ts","lint:fix":"eslint src tests --ext .ts --fix","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","format:check":"prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"","prepublishOnly":"npm run build:data && npm run build","publish:patch":"npm version patch && npm publish --access public","publish:minor":"npm version minor && npm publish --access public","publish:major":"npm version major && npm publish --access public"},"keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/earth774/thai-address-finder.git"},"bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"homepage":"https://earth774.github.io/thai-address-finder-demo/","devDependencies":{"@types/jest":"^29.5.12","@types/node":"^20.11.5","@typescript-eslint/eslint-plugin":"^6.19.1","@typescript-eslint/parser":"^6.19.1","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","jest":"^29.7.0","prettier":"^3.2.4","ts-jest":"^29.1.2","typescript":"^5.3.3","compression":"^1.7.4","express":"^4.18.2"},"_id":"@amiearth/thai-address-finder@0.0.16","gitHead":"e4e61ca4a16ef822a45dc74590ba520eaadbabcf","_nodeVersion":"23.7.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-GzAoNoE8ewmYwZWVkPBLEsQ0Eq0tx9c3+qmcTF4+3mdO1XkZ6JQY8hppjCd4Qc0rjYv4oneh59+7eL/TEtu+Aw==","shasum":"59066846a8cdb1548549f8199d90d82997d089db","tarball":"https://registry.npmjs.org/@amiearth/thai-address-finder/-/thai-address-finder-0.0.16.tgz","fileCount":17,"unpackedSize":3311718,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDz75ce0A17g6zfqoTeq7J7qBy0c8y6v9gcE3D+IRJD0wIgeGynej8w3ju2JyPNmzjY2DarXkmsPBstDvWNyqSzTtg="}]},"_npmUser":{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"},"directories":{},"maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/thai-address-finder_0.0.16_1764946147473_0.7418842599572495"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-04T15:25:38.454Z","modified":"2025-12-05T14:49:07.847Z","0.0.2":"2025-12-04T15:25:38.701Z","0.0.3":"2025-12-04T15:48:46.709Z","0.0.4":"2025-12-04T15:52:11.311Z","0.0.5":"2025-12-05T03:46:55.855Z","0.0.6":"2025-12-05T03:59:48.089Z","0.0.7":"2025-12-05T04:11:57.911Z","0.0.8":"2025-12-05T04:17:28.333Z","0.0.9":"2025-12-05T04:30:16.249Z","0.0.10":"2025-12-05T04:33:20.088Z","0.0.11":"2025-12-05T04:38:39.803Z","0.0.12":"2025-12-05T04:40:59.777Z","0.0.13":"2025-12-05T05:09:03.975Z","0.0.14":"2025-12-05T14:36:22.910Z","0.0.15":"2025-12-05T14:40:28.932Z","0.0.16":"2025-12-05T14:49:07.616Z"},"bugs":{"url":"https://github.com/earth774/thai-address-finder/issues"},"license":"MIT","homepage":"https://earth774.github.io/thai-address-finder-demo/","keywords":["thai","address","thailand","postal-code","province","district","sub-district","autocomplete"],"repository":{"type":"git","url":"git+https://github.com/earth774/thai-address-finder.git"},"description":"A library to search and find Thai address information","maintainers":[{"name":"amiearth","email":"sutthiphongnuanma@gmail.com"}],"readme":"# thai-address-finder\n\nA TypeScript library to search and find Thai address information including provinces, districts, sub-districts, and postal codes.\n\n## Features\n\n- 🔍 **Search** - Search addresses by province, district, sub-district, or postal code\n- 🔎 **Autocomplete** - Get address suggestions with relevance scoring\n- ✅ **Validation** - Validate postal codes and complete addresses\n- 📋 **Utilities** - Get lists of provinces, districts, and sub-districts\n- 🇹🇭 **Thai Language Support** - Full support for Thai text search and matching\n\n## Live Demo (React)\n\n- Try the interactive React demo: [Thai Address Finder Demo](https://earth774.github.io/thai-address-finder-demo/)\n- The demo uses this npm package directly, so the behavior matches what you get after installing.\n\n## Installation\n\n```bash\nnpm install thai-address-finder\n```\n\n## Usage\n\n### Basic Search\n\n```typescript\nimport { searchAddresses, findByPostalCode } from 'thai-address-finder';\n\n// Search by postal code\nconst addresses = findByPostalCode('10100');\nconsole.log(addresses);\n// [\n//   {\n//     province: 'กรุงเทพมหานคร',\n//     district: 'ปทุมวัน',\n//     subDistrict: 'ปทุมวัน',\n//     postalCode: '10100'\n//   }\n// ]\n\n// Search with multiple criteria\nconst results = searchAddresses({\n  province: 'กรุงเทพมหานคร',\n  district: 'ปทุมวัน'\n});\n```\n\n### Autocomplete\n\n```typescript\nimport { autocomplete } from 'thai-address-finder';\n\n// Get address suggestions\nconst suggestions = autocomplete({\n  query: 'กรุงเทพ',\n  limit: 5\n});\n\n// Results are sorted by relevance score\nconsole.log(suggestions);\n```\n\n### React Autocomplete Example\n\n```tsx\nimport { useMemo, useState } from 'react';\nimport { autocomplete } from 'thai-address-finder';\n\nexport function AddressAutocomplete() {\n  const [query, setQuery] = useState('');\n\n  const suggestions = useMemo(\n    () => (query ? autocomplete({ query, limit: 5 }) : []),\n    [query]\n  );\n\n  return (\n    <div>\n      <label htmlFor=\"address-query\">ค้นหาที่อยู่</label>\n      <input\n        id=\"address-query\"\n        value={query}\n        onChange={(e) => setQuery(e.target.value)}\n        placeholder=\"พิมพ์จังหวัด/อำเภอ/ตำบล/รหัสไปรษณีย์\"\n      />\n      <ul>\n        {suggestions.map((item) => (\n          <li\n            key={`${item.province}-${item.district}-${item.subDistrict}-${item.postalCode}`}\n          >\n            {item.subDistrict}, {item.district}, {item.province} {item.postalCode}\n          </li>\n        ))}\n      </ul>\n    </div>\n  );\n}\n```\n\n### Validation\n\n```typescript\nimport {\n  validatePostalCode,\n  validateAddress,\n  isValidProvince,\n  isValidDistrict\n} from 'thai-address-finder';\n\n// Validate postal code format\nvalidatePostalCode('10100'); // true\nvalidatePostalCode('1234');  // false\n\n// Validate complete address\nconst address = {\n  province: 'กรุงเทพมหานคร',\n  district: 'ปทุมวัน',\n  subDistrict: 'ปทุมวัน',\n  postalCode: '10100'\n};\nvalidateAddress(address); // true\n\n// Check if province exists\nisValidProvince('กรุงเทพมหานคร'); // true\nisValidProvince('ไม่มีจังหวัดนี้'); // false\n\n// Check if district exists (optionally within province)\nisValidDistrict('ปทุมวัน', 'กรุงเทพมหานคร'); // true\n```\n\n### Utility Functions\n\n```typescript\nimport {\n  getProvinces,\n  getDistricts,\n  getSubDistricts\n} from 'thai-address-finder';\n\n// Get all provinces\nconst provinces = getProvinces();\nconsole.log(provinces);\n// ['กรุงเทพมหานคร', 'เชียงใหม่', 'ภูเก็ต', ...]\n\n// Get districts by province\nconst districts = getDistricts('กรุงเทพมหานคร');\nconsole.log(districts);\n// ['ปทุมวัน', 'สาทร', 'คลองสาน', ...]\n\n// Get sub-districts by district and province\nconst subDistricts = getSubDistricts('ปทุมวัน', 'กรุงเทพมหานคร');\nconsole.log(subDistricts);\n// ['ปทุมวัน', 'ลุมพินี']\n```\n\n## API Reference\n\n### Types\n\n#### `ThaiAddress`\n\n```typescript\ninterface ThaiAddress {\n  province: string;\n  district: string;\n  subDistrict: string;\n  postalCode: string;\n}\n```\n\n#### `SearchOptions`\n\n```typescript\ninterface SearchOptions {\n  province?: string;\n  district?: string;\n  subDistrict?: string;\n  postalCode?: string;\n}\n```\n\n#### `AutocompleteOptions`\n\n```typescript\ninterface AutocompleteOptions {\n  query: string;\n  limit?: number; // Default: 10\n}\n```\n\n### Search Functions\n\n#### `searchAddresses(options: SearchOptions): ThaiAddress[]`\n\nSearch addresses by multiple criteria. All criteria are optional and combined with AND logic.\n\n```typescript\nsearchAddresses({\n  province: 'กรุงเทพมหานคร',\n  district: 'ปทุมวัน'\n});\n```\n\n#### `findByPostalCode(postalCode: string): ThaiAddress[]`\n\nFind all addresses with a specific postal code.\n\n```typescript\nfindByPostalCode('10100');\n```\n\n#### `findByProvince(province: string): ThaiAddress[]`\n\nFind all addresses in a province. Supports partial matching.\n\n```typescript\nfindByProvince('กรุงเทพมหานคร');\n```\n\n#### `findByDistrict(district: string, province?: string): ThaiAddress[]`\n\nFind all addresses in a district. Optionally filter by province.\n\n```typescript\nfindByDistrict('ปทุมวัน');\nfindByDistrict('ปทุมวัน', 'กรุงเทพมหานคร');\n```\n\n### Autocomplete\n\n#### `autocomplete(options: AutocompleteOptions): ThaiAddress[]`\n\nGet address suggestions based on query string. Results are sorted by relevance score.\n\n```typescript\nautocomplete({ query: 'กรุงเทพ', limit: 10 });\n```\n\n### Validation Functions\n\n#### `validatePostalCode(code: string): boolean`\n\nValidate postal code format (5 digits).\n\n```typescript\nvalidatePostalCode('10100'); // true\nvalidatePostalCode('1234');  // false\n```\n\n#### `validateAddress(address: ThaiAddress): boolean`\n\nValidate a complete address object. Checks format and existence in database.\n\n```typescript\nvalidateAddress({\n  province: 'กรุงเทพมหานคร',\n  district: 'ปทุมวัน',\n  subDistrict: 'ปทุมวัน',\n  postalCode: '10100'\n}); // true\n```\n\n#### `isValidProvince(province: string): boolean`\n\nCheck if a province exists in the database.\n\n```typescript\nisValidProvince('กรุงเทพมหานคร'); // true\n```\n\n#### `isValidDistrict(district: string, province?: string): boolean`\n\nCheck if a district exists. Optionally validate within a specific province.\n\n```typescript\nisValidDistrict('ปทุมวัน', 'กรุงเทพมหานคร'); // true\n```\n\n#### `isValidSubDistrict(subDistrict: string, district?: string, province?: string): boolean`\n\nCheck if a sub-district exists. Optionally validate within district and province.\n\n```typescript\nisValidSubDistrict('ปทุมวัน', 'ปทุมวัน', 'กรุงเทพมหานคร'); // true\n```\n\n### Utility Functions\n\n#### `getProvinces(): string[]`\n\nGet unique list of all provinces, sorted alphabetically.\n\n```typescript\nconst provinces = getProvinces();\n```\n\n#### `getDistricts(province: string): string[]`\n\nGet unique list of districts in a province, sorted alphabetically.\n\n```typescript\nconst districts = getDistricts('กรุงเทพมหานคร');\n```\n\n#### `getSubDistricts(district: string, province: string): string[]`\n\nGet unique list of sub-districts in a district and province, sorted alphabetically.\n\n```typescript\nconst subDistricts = getSubDistricts('ปทุมวัน', 'กรุงเทพมหานคร');\n```\n\n#### `normalizeThaiText(text: string): string`\n\nNormalize Thai text for search comparison (removes spaces, converts to lowercase).\n\n```typescript\nnormalizeThaiText('  กรุงเทพมหานคร  '); // 'กรุงเทพมหานคร'\n```\n\n## Development\n\n### Prerequisites\n\n- Node.js >= 16\n- npm >= 8\n\n### Setup\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run tests\nnpm test\n\n# Run tests with coverage\nnpm run test:coverage\n\n# Lint code\nnpm run lint\n\n# Format code\nnpm run format\n```\n\n### Project Structure\n\n```\nthai-address-finder/\n├── src/\n│   ├── index.ts           # Main export file\n│   ├── types/\n│   │   └── address.ts     # TypeScript interfaces\n│   ├── data/\n│   │   └── addresses.ts   # Address data\n│   ├── search/\n│   │   ├── search.ts      # Search functions\n│   │   └── autocomplete.ts # Autocomplete logic\n│   ├── validation/\n│   │   └── validator.ts   # Validation functions\n│   └── utils/\n│       └── helpers.ts     # Utility functions\n├── tests/                 # Unit tests\n└── dist/                  # Compiled output\n```\n\n## Data Source\n\nThis library currently includes sample address data. For production use, you should replace the data in `src/data/addresses.ts` with official Thai address data from reliable sources such as:\n\n- Thailand Post (ไปรษณีย์ไทย)\n- Department of Provincial Administration (กรมการปกครอง)\n\nThe data structure is designed to be easily replaceable without changing the API.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n### Code Style\n\n- Follow TypeScript best practices\n- Run `npm run lint` and `npm run format` before committing\n- Write tests for new features\n- Maintain test coverage above 80%\n\n## License\n\nMIT\n\n## Author\n\nFree and open source library for the Thai developer community.\n\n","readmeFilename":"README.md"}