There are instructions to download, rebuild and obtain the latest data from official source
npm install jp-postalThere are instructions to download, rebuild and obtain the latest data from official source
Latest database update: December 12, 2025
更新日:2025年12月13日
- General page: http://www.post.japanpost.jp/zipcode/download.html
- Download page: http://www.post.japanpost.jp/zipcode/dl/kogaki-zip.html
- Explanation: http://www.post.japanpost.jp/zipcode/dl/readme.html
``bash`
npm i jp-postal
`javascript
import postal from 'jp-postal'
console.log(postal['1130021'])
// [ [ '東京都', '文京区', '本駒込', 'トウキョウト', 'ブンキョウク', 'ホンコマゴメ' ] ]
console.log(postal['0040000'])
// [
// [ '北海道', '札幌市厚別区', '', 'ホッカイドウ', 'サッポロシアツベツク', '' ],
// [ '北海道', '札幌市清田区', '', 'ホッカイドウ', 'サッポロシキヨタク', '' ]
// ]
console.log(postal['4980000'])
// [
// [ '愛知県', '弥富市', '', 'アイチケン', 'ヤトミシ', '' ],
// [ '三重県', '桑名郡木曽岬町', '', 'ミエケン', 'クワナグンキソサキチョウ', '' ]
// ]
`
- Default export maps 7 digits postal code (string format) into an array whose elements are array of \[prefecture, region, subregion, prefecture kana, region kana, subregion kana\]
To rebuild to obtain the latest database
`bash`
npm i
npm run rebuild
`bash``
npm run test