{"_id":"jpostcode","_rev":"60-03794992afdd7c50542409ae40bb7bbd","name":"jpostcode","dist-tags":{"latest":"1.0.202608"},"versions":{"0.20.202503":{"name":"jpostcode","version":"0.20.202503","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202503","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"16a9681672b2ee9c11c6511f9eaf706d61760e3f","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202503.tgz","fileCount":958,"integrity":"sha512-keTt327updba7LepfG0fwmc+NJMoVYHzhpgA20vCdM/KikSuH1itm44p1JDzKo4H5t6YieKhDbM87koFKwHtIA==","signatures":[{"sig":"MEYCIQC3zauTdIPk72gs9Rox0ulwW5GjlQU5Xc2K+pBNAThKlwIhAPwo9fiOzSUel+2MFuZLeL5vE0hzzuSsBnn+2dKpq21g","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56180559},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"6be57fbcd4069d7018271052d3ac95b04c09d101","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"11.1.0","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202503_1741000974597_0.3582122701933832","host":"s3://npm-registry-packages-npm-production"}},"0.20.202504":{"name":"jpostcode","version":"0.20.202504","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202504","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"5dea5eb499ae7575c4554c1a2f27b03a42100fb1","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202504.tgz","fileCount":958,"integrity":"sha512-k2toJt3QzZPRxUHYlwsr2LrF4DxC39L+6CuGac+4cKOw783RDZM/7mklHFJ5JdWpjnZAcIq+ptomFzNIn7areg==","signatures":[{"sig":"MEUCIBkAA/gpOAArbL90eQegcthy/o2JQDZhLlWs3QFvoub2AiEAvSjLMCyc/iNdkLHwNhd1jZnI7hAln58LOv88DinrwWc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56181293},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"fcf5184700d940e20b18ad41e4bbf395c5d0cb50","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.0","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202504_1743471285411_0.19793841120745048","host":"s3://npm-registry-packages-npm-production"}},"0.20.202505":{"name":"jpostcode","version":"0.20.202505","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202505","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"40338434266946d73e966a49772a7d1b4aa7cca4","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202505.tgz","fileCount":958,"integrity":"sha512-E4VBwk/xYIIa3omawCJltElfW2LKmuY9zwVUE1ogTwxKJwA+5RUYmLdrJncsvmy54cqJOrZHtti5w/ToaasvfQ==","signatures":[{"sig":"MEQCIBYPNnxnsBRRaFicXLE7vPAPcuu+Ao4OCxL8BHhkza4xAiBeeIz91+EDkwtKBZRPLzi6MFKb/ZM+HPf2D5UIB29fqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56182823},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"695a973ab3e69eca753296fdb4f35c7e38cfd2e2","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202505_1746063295348_0.6728202472676057","host":"s3://npm-registry-packages-npm-production"}},"0.20.202506":{"name":"jpostcode","version":"0.20.202506","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202506","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"448fe8e295714d085236cece4e966ae3d4820c5d","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202506.tgz","fileCount":958,"integrity":"sha512-Gq0fsqb0+oydbFNxrqiuHeuD3+sW6IsDzipqeA/m7spf2UiD13l3dbkZNOXxZT487xDAcv7IRHKRnHHyDeeoKA==","signatures":[{"sig":"MEUCIHXHGzbygmIQN5ptW9lq2Rv/0PzvjHHJ2FCrR8sKOuuIAiEA6yOMR3/60Vea9K0Ygg0AgMAGwhBbOQpbXhod598PDgQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56189635},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"14f79a33730ebe4da6daada74e5ada859b30b57d","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202506_1748741735630_0.09878073111316965","host":"s3://npm-registry-packages-npm-production"}},"0.20.202507":{"name":"jpostcode","version":"0.20.202507","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202507","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"4d6b7528560ea9cf6d99672bb0ea79a7c38a8ca9","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202507.tgz","fileCount":958,"integrity":"sha512-WnMT37JKceU4xIH9flzj/YM5rXK6u+NCd4Fnh7QIX8WEh3rPrb0ndsy8U/hsJIZm69iwlMuZZx5TTbR3xpqvHQ==","signatures":[{"sig":"MEYCIQDOVjNbaIkAB8ucx76dW5yAWPaksZ4y90WE6KpJY50fWwIhAK5Mu+3ohBAL5JN+FVImmNMTFYBbTebLBEVIPI6csArR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56197899},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"286050ea53d8fe2aae8cde288c9573068e7be4ff","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:all":"npm run build && npm run build:web","build:web":"node esbuild-web.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","actor":{"name":"9re","type":"user","email":"9re.3000@gmail.com"},"email":"9re.3000@gmail.com"},"_npmVersion":"11.4.1","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202507_1751881327513_0.3243383234814843","host":"s3://npm-registry-packages-npm-production"}},"0.20.202508":{"name":"jpostcode","version":"0.20.202508","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202508","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"76b2bc2816685a04e96cdec29be6dac1e4179597","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202508.tgz","fileCount":958,"integrity":"sha512-ydWjRw8s3H6KToMV0JFHYjUfHRLJJPieQJQ+drWA6ThI7M6rbXkaHVGuil26xkwKXwPAw7rpGYM8O5GAM1gswg==","signatures":[{"sig":"MEUCIQDqzFYC/7ts2IOQlrN37Yb3HyMiMQStphkiBWJOIXpohwIgOrfuQj7n983MC4lTNQBMyKABaiXe9KpMhJ149VENBgw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56196318},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"58a809a0cd9fd652f9c872c88680092ee81a8cd3","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202508_1754012185687_0.911734632554243","host":"s3://npm-registry-packages-npm-production"}},"0.20.202509":{"name":"jpostcode","version":"0.20.202509","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202509","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"28157ef97484aeb24277043def4aa4b069b9a883","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202509.tgz","fileCount":958,"integrity":"sha512-LHju3QysSVjnzHWPCx2oULsGuzxB8ffQJejZVDnC1k1ZME83fiSftrQFz6L2euWtrmxyyT3r0YbvC+/JlAPd5Q==","signatures":[{"sig":"MEYCIQC02UgrMt4Oo9O3KhHJEdmAQ86SEAaRjhcYyr/KrWYoeQIhAPRigqXLU50vCDjL9r3We6ZGx3V4lH88EoSSeWVoluFe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56197076},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"b9e928d08c8954c1192d4d9a3e8fa405cbcb7d31","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202509_1756690518142_0.4406159492265964","host":"s3://npm-registry-packages-npm-production"}},"0.20.202510":{"name":"jpostcode","version":"0.20.202510","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript"],"license":"MIT","_id":"jpostcode@0.20.202510","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"dist":{"shasum":"a353932ee9c92d00fd3bf62adf640ca70494f4e1","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.20.202510.tgz","fileCount":958,"integrity":"sha512-Fzs7kp2B+9mz4hqhEnP8HpfAvowTFDVASzM0nsIeFoHAz9jrHj3mKrtu0QnmlK5/zLEC4kqZWArQ9+PtyuBPZg==","signatures":[{"sig":"MEUCIQDGRsMaBEYGJ9kk7nsTtV4EMUEH/BqlOv9LRMEMhnd5pgIgNDEqD/lDPn6FsIHNrEH9ZvczEIxWw/OZUS2GGUjvUGc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56200003},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"45d45613ad863ad05f4786e1d723d867beaac59f","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.20.202510_1759282490441_0.5888797108787607","host":"s3://npm-registry-packages-npm-production"}},"0.23.202511":{"name":"jpostcode","version":"0.23.202511","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@0.23.202511","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"16d1ad600d3077f41887a43a745cf26aec5e85f1","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.23.202511.tgz","fileCount":959,"integrity":"sha512-w34LErKezmPlGsL887iFMnU6JiQ4dWqFRGCwMAHvREaL7n+bjYh6UB759URpE/4YxtrJmfZKPuoKWs4g1bIrBw==","signatures":[{"sig":"MEUCIQDjOJODbO0N3Hlen/K4W4x7KwnRvCzbSZLUPhYbwXvAFQIgBe30kqCwQc9vzZzPVQgvdq9Rirmpd1/sMQqSOAsiJ3k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56207389},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"0871a24c22bc7d333977643affe1664599f72f3b","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"10.9.3","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.23.202511_1761856105409_0.2603924119288823","host":"s3://npm-registry-packages-npm-production"}},"0.23.202512":{"name":"jpostcode","version":"0.23.202512","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@0.23.202512","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"ddcac68d09e7418db6a85f21a615bc52453f6e36","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.23.202512.tgz","fileCount":959,"integrity":"sha512-AoLIQ8loYV3XQUqEE6149yo3WsH3/wLO3Obpq5BZ6ntuhO3LLGRTF6c1A7FgB9LEH79jVoStV6ai9ISu/KJ96Q==","signatures":[{"sig":"MEQCIF6cKOLW/JMlRIvjO/O+basAcv/d4CEuCzynJyQGrqpqAiAolB3p2+IRKgfSHNpHKjA8y/9KvuVLh6pJd+hQQ5YvDA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56203445},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"c71964e89fb9a251517ad094787890fdbf4fb528","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"9re","email":"9re.3000@gmail.com"},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"10.8.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.25.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3","@types/jest":"^29.5.14","npm-check-updates":"^17.1.14"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.23.202512_1764553005844_0.7047554349214578","host":"s3://npm-registry-packages-npm-production"}},"0.24.202602":{"name":"jpostcode","version":"0.24.202602","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@0.24.202602","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"f8b6ce81ded3a9e57f5db8ae72b4bd07482c1ee5","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.24.202602.tgz","fileCount":959,"integrity":"sha512-m8MkOUzfE/cJMjoTGFZYd/pPocbBY5/ugSweIaqkHHz5oOAxVbNsuif6DWGYvnpSsjsqF4fBkTr298X8W8F66g==","signatures":[{"sig":"MEQCIAMUSmKW4A/uu45MzDMTyb7fMHavxhYmDJ2y2y9f1np0AiBuIHFWgjDLdx/W5Ew6P20J/6oL1QiAWdcKq5sd2py0Lg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jpostcode@0.24.202602","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":56199274},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"6a8bc0085f9e62251d8c30a61fc8f8d8cba41143","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:81617dc1-7547-4f55-931d-b802fe7a919a"}},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"11.6.2","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.27.2","ts-jest":"^29.4.6","ts-node":"^10.9.2","typescript":"^5.9.3","@types/jest":"^30.0.0","npm-check-updates":"^19.3.0"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.24.202602_1770919395881_0.6152291320082002","host":"s3://npm-registry-packages-npm-production"}},"0.24.202603":{"name":"jpostcode","version":"0.24.202603","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@0.24.202603","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"af0d7b8d3f4d64db3737782a20e94f6c7fad5716","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.24.202603.tgz","fileCount":959,"integrity":"sha512-KPk0cSHhOB2I8+5DIFys/CJGfGgKCi9xsN7GsnWmMnP4ry6aCyDhRCaEmq+00ee+xB28iXfavnfCxRWCIT9p3Q==","signatures":[{"sig":"MEUCIEtGhjs+10xb1UvbY63d6ETez0PDxxjGw2vY0VP45xFPAiEA1skhgmxtkBRjxUC/mWOc4ujfQgmJ0/QkEDWHtrP+Yvo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jpostcode@0.24.202603","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":56210235},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"6e80148f6ec69d7c9f2f080b534dea61345d18e9","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:81617dc1-7547-4f55-931d-b802fe7a919a"}},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"11.8.0","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.27.2","ts-jest":"^29.4.6","ts-node":"^10.9.2","typescript":"^5.9.3","@types/jest":"^30.0.0","npm-check-updates":"^19.3.0"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.24.202603_1772329037333_0.44723628236687296","host":"s3://npm-registry-packages-npm-production"}},"0.24.202604":{"name":"jpostcode","version":"0.24.202604","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@0.24.202604","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"e6af03687f1ff18bca25c9918c707b0e5d1f534d","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-0.24.202604.tgz","fileCount":959,"integrity":"sha512-GbtCMlVNxKgsIU1GtbFRCkcrD4fidZIyYP0S1xDVjT3iyP+4WQ0QlwZJ+M6WI152KS7sENO+Ke60hyU2u+n0EA==","signatures":[{"sig":"MEYCIQCLQQgnzrm29cwCNZa5eIohYiaNZlzjwMQwokCXOhWF/gIhAKU2peEyKzBTTuGZ0cuSmyA4DBDXBlinUXWE+JFIQXA4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jpostcode@0.24.202604","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":56211568},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"e0bcbc96ebd9f58bfe906ea359d0a551b89d813e","scripts":{"test":"jest","build":"npm run build:js && npm run build:types","build:js":"node esbuild.mjs","build:types":"tsc src/jpostcode.ts --declaration --emitDeclarationOnly --outfile dist/index.d.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:81617dc1-7547-4f55-931d-b802fe7a919a"}},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"11.9.0","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","esbuild":"^0.27.2","ts-jest":"^29.4.6","ts-node":"^10.9.2","typescript":"^5.9.3","@types/jest":"^30.0.0","npm-check-updates":"^19.3.0"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_0.24.202604_1775007512534_0.9066101887106286","host":"s3://npm-registry-packages-npm-production"}},"1.0.202605":{"name":"jpostcode","version":"1.0.202605","keywords":["jpostcode","Japanese addresses","postal code","address lookup","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@1.0.202605","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"b5bb4dacbb14ddf7c5056d227c8b3c0a12108777","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-1.0.202605.tgz","fileCount":964,"integrity":"sha512-r3Z1cNRuH1Ul75kk+bjuNmJMhUtQt/CGKHk3bWm47qyx12BVG0dsslqoEnQgfbYWmlAzy5TT6HewgooTeMxgaQ==","signatures":[{"sig":"MEUCIQCKF0PR4EOsBfhnAqsKKwVcKFMmK9vKhhTE/8mithTlHwIgJOxWaHtmp//PZE7h0/Kcl2i8UZ/8gJBJopFc7lWQ7mI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jpostcode@1.0.202605","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":113624124},"main":"dist/index.cjs.js","types":"dist/jpostcode.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/jpostcode.d.ts","import":"./dist/index.mjs","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"},"./package.json":"./package.json"},"gitHead":"e38563d6c907bbd1f450a6f8bc170e5eeff7107d","scripts":{"test":"npm run build && jest && npm run test:esm","build":"npm run build:js && npm run build:web && npm run build:types","build:js":"node esbuild.mjs","test:esm":"node -e \"import('./dist/index.mjs').then((m)=>{const r=m.Jpostcode.find('0010000'); if (r[0]?.prefecture !== '北海道') process.exit(1)})\"","build:web":"node esbuild-web.mjs","build:types":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:81617dc1-7547-4f55-931d-b802fe7a919a"}},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"11.11.0","description":"A library for finding Japanese addresses by postal code.","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.3.0","tslib":"^2.8.1","esbuild":"^0.28.0","ts-jest":"^29.4.6","ts-node":"^10.9.2","typescript":"^6.0.3","@types/jest":"^30.0.0","@types/node":"^25.6.0","npm-check-updates":"^22.0.1"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_1.0.202605_1777599678918_0.5333934046879891","host":"s3://npm-registry-packages-npm-production"}},"1.0.202607":{"name":"jpostcode","version":"1.0.202607","keywords":["jpostcode","Japanese addresses","postal code","zipcode","address lookup","address autofill","autofill","form autofill","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","住所自動入力","フォーム自動入力","日本","都道府県","市区町村","町域","カナ"],"license":"MIT","_id":"jpostcode@1.0.202607","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"dist":{"shasum":"0023c3d57042bc3c5cfce8f370ff6247a0778961","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-1.0.202607.tgz","fileCount":964,"integrity":"sha512-7gXUpSSRfLgBVZqnhWKwH3uXgo99otmt9KhSJLhtrd/Kh8Iei1HW+h/foX6HvDmeBVPY6isIryQpu7gDXEf2kQ==","signatures":[{"sig":"MEUCIGBbWfjmfLXPbdIFa3ySRNn4hXpxYhVtzWa/H+3svqX0AiEA5EEtkan1rnlClsfECTSvMiGcKfUX3nfHGScD8BSrKUo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jpostcode@1.0.202607","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":113627313},"main":"dist/index.cjs.js","types":"dist/jpostcode.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/jpostcode.d.ts","import":"./dist/index.mjs","default":"./dist/index.cjs.js","require":"./dist/index.cjs.js"},"./package.json":"./package.json"},"gitHead":"fef7132c311cf11b547876b49b195d1ebf25509d","scripts":{"test":"npm run build && jest && npm run test:esm","build":"npm run build:js && npm run build:web && npm run build:types","build:js":"node esbuild.mjs","test:esm":"node -e \"import('./dist/index.mjs').then((m)=>{const r=m.Jpostcode.find('0010000'); if (r[0]?.prefecture !== '北海道') process.exit(1)})\"","build:web":"node esbuild-web.mjs","build:types":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:81617dc1-7547-4f55-931d-b802fe7a919a"}},"repository":{"url":"git+https://github.com/matzlika/jpostcode-js.git","type":"git"},"_npmVersion":"11.13.0","description":"Japanese postal code to address lookup. Auto-updated monthly, official CDN available, no API server required. Works in Node.js, browsers, and TypeScript.","directories":{},"_nodeVersion":"24.17.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.3.0","tslib":"^2.8.1","esbuild":"^0.28.0","ts-jest":"^29.4.6","ts-node":"^10.9.2","typescript":"^6.0.3","@types/jest":"^30.0.0","@types/node":"^25.6.0","npm-check-updates":"^22.0.1"},"_npmOperationalInternal":{"tmp":"tmp/jpostcode_1.0.202607_1782870641962_0.946243602343124","host":"s3://npm-registry-packages-npm-production"}},"1.0.202608":{"name":"jpostcode","version":"1.0.202608","description":"Japanese postal code to address lookup. Auto-updated monthly, official CDN available, no API server required. Works in Node.js, browsers, and TypeScript.","main":"dist/index.cjs.js","module":"dist/index.mjs","types":"dist/jpostcode.d.ts","exports":{".":{"types":"./dist/jpostcode.d.ts","require":"./dist/index.cjs.js","import":"./dist/index.mjs","default":"./dist/index.cjs.js"},"./web":{"types":"./dist/web.d.ts","require":"./dist/web.cjs","import":"./dist/web.mjs","default":"./dist/web.mjs"},"./package.json":"./package.json"},"sideEffects":false,"license":"MIT","repository":{"type":"git","url":"git+https://github.com/matzlika/jpostcode-js.git"},"homepage":"https://github.com/matzlika/jpostcode-js#readme","bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"keywords":["jpostcode","Japanese addresses","postal code","zipcode","address lookup","address autofill","autofill","form autofill","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","住所自動入力","フォーム自動入力","日本","都道府県","市区町村","町域","カナ"],"scripts":{"build":"npm run build:js && npm run build:web && npm run build:types","build:js":"node esbuild.mjs","build:web":"node esbuild-web.mjs","build:types":"tsc -p tsconfig.build.json","test:esm":"node -e \"import('./dist/index.mjs').then((m)=>{const r=m.Jpostcode.find('0010000'); if (r[0]?.prefecture !== '北海道') process.exit(1)})\"","test:web":"node scripts/test-web-dist.mjs","test":"npm run build && jest && npm run test:esm && npm run test:web"},"devDependencies":{"@types/jest":"^30.0.0","@types/node":"^25.6.0","esbuild":"^0.28.0","jest":"^30.3.0","npm-check-updates":"^22.0.1","ts-jest":"^29.4.6","ts-node":"^10.9.2","tslib":"^2.8.1","typescript":"^6.0.3"},"gitHead":"6aec90904d3e0760074588f5fd47a3350aad7cb2","_id":"jpostcode@1.0.202608","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-/GDpwsSWouv+OuL6Orl9n9k0dcv0GuU0abjlPzflZr+C2ynE4IlugOTnsypi4MgTuT47hZEo1pwYgn1YpsxNBg==","shasum":"60b803e462cd9c78a211e7ffb1b2ac903b1a0711","tarball":"https://registry.npmjs.org/jpostcode/-/jpostcode-1.0.202608.tgz","fileCount":973,"unpackedSize":113669968,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jpostcode@1.0.202608","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDsyKkX9KNNwXg2YOeC83DXy9DbiKuip7sNs810aRUdbAIhAOv+DL0Jx3BhRklpgA71n+d4tpgHF98WhgUddZiGIZMU"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:81617dc1-7547-4f55-931d-b802fe7a919a"}},"directories":{},"maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jpostcode_1.0.202608_1785548297866_0.07915089579796097"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-22T06:46:47.365Z","modified":"2026-08-01T01:38:18.453Z","0.2.0":"2025-02-22T06:46:47.699Z","0.3.0":"2025-02-22T07:51:07.722Z","0.3.20250222105759":"2025-02-22T10:58:02.950Z","0.3.20250222105931":"2025-02-22T10:59:34.194Z","0.3.20250222110420":"2025-02-22T11:04:29.492Z","0.3.20250222112941":"2025-02-22T11:29:44.124Z","0.3.20250222113215":"2025-02-22T11:32:18.151Z","0.4.20250222110420":"2025-02-22T12:00:37.389Z","0.6.20250222":"2025-02-22T12:18:30.132Z","0.7.20250222":"2025-02-22T12:30:08.114Z","0.8.20250222":"2025-02-22T12:36:47.923Z","0.9.20250222":"2025-02-22T13:47:55.595Z","0.10.20250222":"2025-02-22T13:54:08.675Z","0.11.20250222":"2025-02-22T13:59:16.842Z","0.12.20250222":"2025-02-22T14:12:53.073Z","0.13.20250222":"2025-02-22T14:14:07.923Z","0.14.20250222":"2025-02-23T09:25:35.708Z","0.18.202503":"2025-03-02T17:00:22.079Z","0.19.202503":"2025-03-03T11:21:13.531Z","0.20.202503":"2025-03-03T11:22:54.891Z","0.20.202504":"2025-04-01T01:34:45.723Z","0.20.202505":"2025-05-01T01:34:55.749Z","0.20.202506":"2025-06-01T01:35:35.918Z","0.20.202507":"2025-07-07T09:42:07.822Z","0.20.202508":"2025-08-01T01:36:25.940Z","0.20.202509":"2025-09-01T01:35:18.442Z","0.20.202510":"2025-10-01T01:34:50.719Z","0.21.202510":"2025-10-30T20:08:54.633Z","0.21.202511":"2025-10-30T20:19:06.204Z","0.22.202510":"2025-10-30T20:22:36.313Z","0.23.202511":"2025-10-30T20:28:25.691Z","0.23.202512":"2025-12-01T01:36:46.161Z","0.24.202602":"2026-02-12T18:03:16.246Z","0.24.202603":"2026-03-01T01:37:17.647Z","0.24.202604":"2026-04-01T01:38:32.889Z","1.0.202605":"2026-05-01T01:41:19.307Z","1.0.202607":"2026-07-01T01:50:42.314Z","1.0.202608":"2026-08-01T01:38:18.159Z"},"bugs":{"url":"https://github.com/matzlika/jpostcode-js/issues"},"license":"MIT","homepage":"https://github.com/matzlika/jpostcode-js#readme","keywords":["jpostcode","Japanese addresses","postal code","zipcode","address lookup","address autofill","autofill","form autofill","Japan","prefecture","city","town","Kana","TypeScript","JavaScript","郵便番号","住所検索","住所自動入力","フォーム自動入力","日本","都道府県","市区町村","町域","カナ"],"repository":{"type":"git","url":"git+https://github.com/matzlika/jpostcode-js.git"},"description":"Japanese postal code to address lookup. Auto-updated monthly, official CDN available, no API server required. Works in Node.js, browsers, and TypeScript.","maintainers":[{"name":"9re","email":"9re.3000@gmail.com"}],"readme":"# Jpostcode\n\n[![npm version](https://img.shields.io/npm/v/jpostcode.svg)](https://www.npmjs.com/package/jpostcode)\n[![npm downloads](https://img.shields.io/npm/dm/jpostcode.svg)](https://www.npmjs.com/package/jpostcode)\n[![Auto Publish](https://github.com/matzlika/jpostcode-js/actions/workflows/auto-publish.yml/badge.svg)](https://github.com/matzlika/jpostcode-js/actions/workflows/auto-publish.yml)\n[![license](https://img.shields.io/npm/l/jpostcode.svg)](https://github.com/matzlika/jpostcode-js/blob/main/LICENSE)\n\n**English**: [README.en.md](https://github.com/matzlika/jpostcode-js/blob/main/README.en.md)\n\n郵便番号から日本の住所を検索する JavaScript ライブラリです。フォームの住所自動入力など、外部 API を呼ばずにブラウザや Node.js だけで完結します。\n\nバージョンは `MAJOR.MINOR.YYYYMM` 形式で、`YYYYMM` が収録データの年月です。上の npm version バッジがそのままデータの鮮度を表します(例: `1.0.202607` は 2026 年 7 月版データ)。\n\n## 特徴\n\n- 🔄 **毎月自動更新** — 上流の [jpostcode-data](https://github.com/kufu/jpostcode-data) の更新を検知して新バージョンを npm に自動公開\n- 🌐 **公式 CDN あり** — Cloudflare Pages からライブラリ本体と郵便番号データを配信\n- ⚡ **API サーバー不要** — ブラウザだけで完結\n- 📖 **カナ表記付き** — 都道府県・市区町村・町域それぞれのカナを返す\n- 🏢 **事業所個別郵便番号対応** — 大口事業所の名称・番地を含むデータを収録\n- 🔀 **複数住所対応** — 同じ郵便番号に複数の住所が紐づく場合は全件を配列で返す\n- 🧩 **TypeScript 対応** — 完全な型定義付き\n- 📦 **Node / バンドラー / ブラウザ対応** — Node.js のほか、`jpostcode/web` で Vite / webpack などのバンドラーからも使える\n\n## 提供形態\n\n| 形態 | 読み込み方 | API | データの取得 |\n| --- | --- | --- | --- |\n| [`jpostcode`](#nodejs-commonjs)(Node.js) | `require` / `import` | 同期 | パッケージ同梱の JSON をファイル読み込み |\n| [`jpostcode/web`](#バンドラーvite--webpack-react-などのフロントエンド)(バンドラー/ブラウザ) | `import` | Promise | CDN から上 3 桁ごとに fetch |\n| [CDN スクリプト版](#クイックスタートブラウザ--cdn) | `<script>` | Promise | 同上 |\n| [CDN Bundle 版](#ブラウザbundle-版全データ同梱同期-api) | `<script>` | 同期 | 全データ同梱(約 55MB) |\n\n## クイックスタート(ブラウザ + CDN)\n\nコピペで動きます。\n\n```html\n<script src=\"https://jpostcode-js.pages.dev/dist/jpostcode-web.js\"></script>\n<script>\n  Jpostcode.find('1000001').then(addresses => {\n    console.log(addresses[0]?.prefecture); // 東京都\n  });\n</script>\n```\n\nライブラリ本体・郵便番号データともに [Cloudflare Pages](https://jpostcode-js.pages.dev/) から配信しています。データはデフォルトで公式 CDN から取得します。自前で配信する場合は `Jpostcode.setBaseUrl('/data/json/')` のように取得元を変更できます([データを自前で配信する](#データを自前で配信する))。\n\n- 上流データの月次更新を反映して自動再配信\n- 東京を含む Cloudflare エッジから低レイテンシで配信\n- gzip / brotli 圧縮配信のため、1 回の検索で取得されるのは上 3 桁ごとの 1 ファイル・転送数 KB〜数十 KB\n- JSON データには `s-maxage=2592000`(エッジ 30 日)/ `max-age=86400`(ブラウザ 1 日)のキャッシュヘッダ\n\n## フォーム住所自動入力の例\n\n7 桁の郵便番号が入力されたら、都道府県・市区町村・町域を自動で埋める例です。\n\n```html\n<input id=\"zip\" placeholder=\"郵便番号(例: 1000001)\">\n<input id=\"prefecture\" placeholder=\"都道府県\">\n<input id=\"city\" placeholder=\"市区町村\">\n<input id=\"town\" placeholder=\"町域\">\n\n<script src=\"https://jpostcode-js.pages.dev/dist/jpostcode-web.js\"></script>\n<script>\n  document.getElementById('zip').addEventListener('input', async (e) => {\n    const zip = e.target.value.replace(/[^0-9]/g, '');\n    if (zip.length !== 7) return;\n\n    const [address] = await Jpostcode.find(zip);\n    if (!address) return;\n\n    document.getElementById('prefecture').value = address.prefecture;\n    document.getElementById('city').value = address.city;\n    document.getElementById('town').value = address.town;\n  });\n</script>\n```\n\n## インストール(npm)\n\n```bash\nnpm install jpostcode\n```\n\n### Node.js (CommonJS)\n\n```javascript\nconst { Jpostcode } = require('jpostcode');\n\nconst addresses = Jpostcode.find('0010000');\nfor (const address of addresses) {\n  console.log(`${address.prefecture} ${address.city} ${address.town}`);\n  console.log(`(カナ: ${address.prefectureKana} ${address.cityKana} ${address.townKana})`);\n}\n```\n\n### Node.js (ESM) / TypeScript\n\n```typescript\nimport { Address, Jpostcode } from 'jpostcode';\n\nconst addresses: Address[] = Jpostcode.find('0010000');\nconsole.log(addresses[0]?.prefecture);\n```\n\n### バンドラー(Vite / webpack)/ React などのフロントエンド\n\n`jpostcode/web` を import します。本体は数 KB で、データは郵便番号の上 3 桁ごとに公式 CDN から fetch します(取得済みデータはメモリにキャッシュ)。\n\n```typescript\nimport { Jpostcode } from 'jpostcode/web';\n\nconst addresses = await Jpostcode.find('1000001'); // Promise<Address[]>\nconsole.log(addresses[0]?.prefecture); // 東京都\n```\n\nReact でフォームに住所を自動入力する例:\n\n```tsx\nimport { Jpostcode } from 'jpostcode/web';\n\nfunction AddressForm() {\n  const [address, setAddress] = useState({ prefecture: '', city: '', town: '' });\n\n  const onZipChange = async (e: ChangeEvent<HTMLInputElement>) => {\n    const zip = e.target.value.replace(/[^0-9]/g, '');\n    if (zip.length !== 7) return;\n    const [found] = await Jpostcode.find(zip);\n    if (found) setAddress({ prefecture: found.prefecture, city: found.city, town: found.town });\n  };\n\n  return (\n    <>\n      <input onChange={onZipChange} placeholder=\"郵便番号\" />\n      <input value={address.prefecture} readOnly />\n      <input value={address.city} readOnly />\n      <input value={address.town} readOnly />\n    </>\n  );\n}\n```\n\nデータを自前で配信する場合は[データを自前で配信する](#データを自前で配信する)を参照してください。\n\n### ブラウザ・Bundle 版(全データ同梱・同期 API)\n\nすべてのデータを 1 ファイルに同梱した版です。ファイルは約 55MB(gzip 転送で約 4MB)と大きいものの、読み込み後はネットワークを使わず同期 API で呼び出せます。\n\n```html\n<script src=\"https://unpkg.com/jpostcode@latest/dist/jpostcode-web-bundle.js\"></script>\n<script>\n  const addresses = Jpostcode.find('1000001'); // Promise ではなく同期\n  console.log(addresses[0]?.prefecture);\n</script>\n```\n\nBundle 版はファイルサイズが jsDelivr の配信上限(50MB)を超えるため、unpkg から読み込んでください。通常のフォーム用途には fetch 版(CDN スクリプト版または `jpostcode/web`)を推奨します。\n\n## データを自前で配信する\n\nfetch 版はデフォルトで公式 CDN(`jpostcode-js.pages.dev`)からデータを取得します。このとき入力された郵便番号の上 3 桁が CDN へのリクエストとして送信されます。これを避けたい場合や、配信を自分の環境の管理下に置きたい場合は、データ一式を自前でホストできます。\n\n1. npm パッケージに同梱されているデータ(JSON 951 ファイル・約 56MB)を静的配信ディレクトリにコピーします\n\n   ```bash\n   cp -r node_modules/jpostcode/dist/jpostcode-data/data/json public/data/json\n   ```\n\n2. 取得元を差し替えます\n\n   ```javascript\n   Jpostcode.setBaseUrl('/data/json/');\n   ```\n\n- 実際に取得されるのは入力された郵便番号の上 3 桁に対応する 1 ファイル(数 KB〜数百 KB)だけです\n- JSON は圧縮がよく効くため(全体で 56MB → gzip 後約 3.8MB)、配信側で gzip / brotli 圧縮を有効にすれば 1 ファイルあたりの転送量は数 KB〜数十 KB になります。ほとんどの静的ホスティング・CDN はデフォルトで圧縮配信します\n- ライブラリと別のオリジンから配信する場合は、配信側に `Access-Control-Allow-Origin` ヘッダの設定が必要です(同一オリジンなら不要)\n- データの更新は毎月の npm パッケージ更新に含まれます。`npm update jpostcode` 後に再コピーしてください\n\nnginx で配信する場合の設定例です。nginx のデフォルトでは JSON は gzip 対象外のため、`gzip_types` の指定が必要です。\n\n```nginx\nlocation /data/json/ {\n    gzip on;\n    gzip_types application/json;\n    expires 1d;\n    add_header Cache-Control \"public\";\n    # 別オリジンのページから参照する場合のみ\n    # add_header Access-Control-Allow-Origin \"https://example.com\";\n}\n```\n\n## API\n\n### `Jpostcode.find(postalCode)`\n\n- 郵便番号は 7 桁の文字列で指定します。ハイフン付き(`'100-0001'`)も受け付けます\n- 返り値は `Address` の配列です。同じ郵便番号に複数の住所が紐づく場合があるためです(複数町域、事業所個別郵便番号など)。存在しない郵便番号の場合は空配列を返します\n- Node.js 版(`jpostcode`)は同期で `Address[]` を、Web 版(`jpostcode/web` / CDN スクリプト版)は `Promise<Address[]>` を返します\n- Web 版は、データの取得に失敗した場合(ネットワークエラー、HTTP 5xx など)は Promise が reject します。「該当する住所がない」(空配列)とは区別されます\n\n### `Address` のプロパティ\n\n| プロパティ | 型 | 例 |\n| --- | --- | --- |\n| `zipCode` | `string` | `'1000001'` |\n| `prefecture` | `string` | `'東京都'` |\n| `prefectureKana` | `string` | `'トウキョウト'` |\n| `prefectureCode` | `number` | `13`(JIS 都道府県コード) |\n| `city` | `string` | `'千代田区'` |\n| `cityKana` | `string` | `'チヨダク'` |\n| `town` | `string` | `'千代田'` |\n| `townKana` | `string` | `'チヨダ'` |\n| `street` | `string \\| null` | `'４−３−１城山トラストタワー２３階'`(事業所個別郵便番号のみ) |\n| `officeName` | `string \\| null` | `'株式会社　スター・チャンネル'`(同上) |\n| `officeNameKana` | `string \\| null` | 同上のカナ表記 |\n\n`street` / `officeName` / `officeNameKana` は事業所個別郵便番号(大口事業所)の場合に値が入り、通常の住所では `null` です。`JSON.stringify(address)` は上記プロパティ名の JSON を返します。\n\n## 他のライブラリとの比較\n\n郵便番号データは毎月更新されるため、データの鮮度が実用上の差になります(2026 年 7 月時点の npm 公開情報に基づく)。\n\n| ライブラリ | 最終リリース | データの供給方法 | 型定義 |\n| --- | --- | --- | --- |\n| jpostcode | 毎月(データ更新に追随して自動公開) | パッケージ同梱+公式 CDN | あり |\n| [jposta](https://www.npmjs.com/package/jposta) | 2026-06 | パッケージ同梱(リリース時点のデータ) | あり |\n| [jp-zipcode-lookup](https://www.npmjs.com/package/jp-zipcode-lookup) | 2025-06 | パッケージ同梱(リリース時点のデータ) | あり |\n| [japan-postal-code-oasis](https://www.npmjs.com/package/japan-postal-code-oasis) | 2023-12 | データの自前ホスティングが必要 | なし |\n| [japan-postal-code](https://www.npmjs.com/package/japan-postal-code) | 2023-07 | 外部サイトから取得 | なし |\n| [yubinbango-core2](https://www.npmjs.com/package/yubinbango-core2) | 2022-05 | yubinbango.github.io から取得(データ最終更新 2026-05) | なし |\n\n取得できる項目にも差があります(各ライブラリの README・型定義に記載された返り値に基づく)。\n\n| ライブラリ | カナ | 事業所個別郵便番号 | 同一番号の複数住所 |\n| --- | --- | --- | --- |\n| jpostcode | 都道府県・市区町村・町域 | 名称・番地 | 全件を配列で返す |\n| jposta | なし | なし | 1 件のみ |\n| jp-zipcode-lookup | 都道府県・市区町村のみ | なし | 全件を配列で返す |\n| japan-postal-code-oasis | なし | なし | 1 件のみ |\n| japan-postal-code | なし | なし | 1 件のみ |\n| yubinbango-core2 | なし | なし | 1 件のみ |\n\n## データの鮮度について\n\n- 上流の [jpostcode-data](https://github.com/kufu/jpostcode-data) が月次で日本郵便の最新データを取り込みます\n- 本ライブラリは GitHub Actions で上流の更新を検知し、新バージョンを自動で npm / CDN に公開します\n- バージョン `MAJOR.MINOR.YYYYMM` の `YYYYMM` がデータ取得時期を表します(例: `1.0.202607` は 2026 年 7 月版)\n- npm を使う場合は依存を更新するだけ、CDN を使う場合は何もしなくても最新になります\n\n## デモ\n\nライブデモ: <https://matzlika.github.io/jpostcode-js/>\n\nローカルで動かす場合:\n\n```bash\nnpm install\nnpm run build\nmkdir -p docs/dist && cp -r dist/* docs/dist/\nnpx http-server docs -p 8000\n```\n\n## 開発\n\n```bash\nnpm install\nnpm run build  # CommonJS / ESM / jpostcode/web / ブラウザ版を生成\nnpm test\n```\n\n## 貢献\n\nissue や Pull Request を歓迎します。\n\n## 謝辞\n\nこのライブラリは [jpostcode-data](https://github.com/kufu/jpostcode-data) (Copyright 2023 SmartHR, Inc., MIT License) のデータを使用しています。メンテナと貢献者の皆様に感謝いたします。\n\n## ライセンス\n\n[MIT](https://github.com/matzlika/jpostcode-js/blob/main/LICENSE)。サードパーティ著作権表示は [NOTICE](https://github.com/matzlika/jpostcode-js/blob/main/NOTICE) を参照してください。\n","readmeFilename":"README.md"}