
<h1 align="center">〒</h1>

## Get any Japanese street address based on it's postal code
## Get postal code by address 
### Installation

`npm i postcode-address-get`

<h3>Usage</h3>

```js
import { 
    getAddressByZip, 
    getPostCodeByAddress, 
    getPostCodeByPrefecture
} from "postcode-address-get"

getAddressByZip("1000005", (address) => {
    console.log(address)
})

getPostCodeByAddress("東京都千代田区丸の内", (dataPostcode)=> {
    console.log(dataPostcode)
})

let dataPrefecture = {
    prefecture: '東京都',
    city: '千代田区',
    area: '丸の内',
    street: ''
}

getPostCodeByPrefecture(dataPrefecture, (dataPostcode) => {
    console.log(dataPostcode)
})
```

### Data

Data is obtained from `https://github.com/yubinbango/yubinbango`
