Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including japan-postal-code with all npm packages installed. Try it out:

var japanPostalCode = require("japan-postal-code")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

japan-postal-code v0.2.0

Japan postal code library

Japan Postal code

JavaScript module for Japan Postal Code.

Forked from

How to install

npm install japan-postal-code

How to use

var postal_code = require('postal_code');

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


MIT License


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free