Created
September 6, 2023 02:50
-
-
Save sprobejames/16b56f8d53a6f10a9e4c479c28fef64d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const url = `https://zipcloud.ibsnet.co.jp/api/search`; | |
| const jpPostalToAddress = async (postalCode) => { | |
| return await fetch(`${url}?zipcode=${postalCode}`) | |
| .then(r => r.json()) | |
| .then(({ data }) => data); | |
| }; | |
| module.exports = jpPostalToAddress; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment