jp-post
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

JpPost

This library was generated with Angular CLI version 9.1.9.

demo

install

npm i jp-post

example

example.component.ts

    this.jpPostService.get(postalCode)
      .then(response => {
        if (response.code === 200) {
        } else {
        }
      })
      .catch(err => {
        this.err = err;
        console.log(err);
      });

reference

inputs

  • postalCode: Japan zip code.

output

  • response: ZipSearch model.
export interface ZipSearch {
  code: number;
  data: {
    pref: string,
    address: string,
    city: string,
    town: string,
    fullAddress: string,
  };
  message?: string;
}

If success then return code is 200 and set value data, else error return code other 200 and set value message.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jp-post

    Weekly Downloads

    0

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    80.9 kB

    Total Files

    23

    Last publish

    Collaborators

    • koichi-ezato