Socket
Socket
Sign inDemoInstall

jp-postal-code

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jp-postal-code

JavaScript library for searching addresses for Japan postal code.


Version published
Maintainers
1
Created

Readme

Source

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); // => "13"
  console.log(address.prefecture);    // => "東京都"
  console.log(address.city);          // => "千代田区"
  console.log(address.area);          // => "千代田"
  console.log(address.street);        // => ""
});

License

MIT License

FAQs

Last updated on 16 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc