JP Postal code
JP Postal code is JavaScript library for searching addresses from Japan postal code.
Forked from https://github.com/mzp/japan-postal-code
JP Postal code is supported webpack2.
(Japan Postal code is not supported webpack2.)
Installation
npm install jp-postal-code
Usage
var jpPostalCode = require('jp-postal-code');
jpPostalCode('1000001', function(address) {
console.log(address.prefecture_id);
console.log(address.prefecture);
console.log(address.city);
console.log(address.area);
console.log(address.street);
});
License
MIT License