japan-postal-code

Japan postal code library

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
japan-postal-code
3600.3.0a year ago9 years agoMinified + gzip package size for japan-postal-code in KB

Readme

Japan Postal code
JavaScript module for Japan Postal Code.
Forked from https://github.com/ajaxzip3/ajaxzip3.github.io

How to install

npm install japan-postal-code

How to use

var postal_code = require('japan-postal-code');

postal_code.get('1000001', function(address) {
  console.log(address.prefecture); // => "東京都"
  console.log(address.city); // => "千代田区"
  console.log(address.area); // => "千代田"
  console.log(address.street); // => ""
});

LICENSE

MIT License