Skip to content

Instantly share code, notes, and snippets.

@sprobejames
Created September 6, 2023 02:50
Show Gist options
  • Select an option

  • Save sprobejames/16b56f8d53a6f10a9e4c479c28fef64d to your computer and use it in GitHub Desktop.

Select an option

Save sprobejames/16b56f8d53a6f10a9e4c479c28fef64d to your computer and use it in GitHub Desktop.
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