Skip to the content

address-plusアドレスプラス

Parse, validate, format and compare addresses locally, add country modules and mount an optional native form field.

address-plus extends the parse-address style with typed results, validation, formatting and country modules. About the name

Contents

Reference · Japanese addresses

JP_MUNICIPALITIESconstant

Every municipality (市区町村) by JIS X 0402 code, with its prefecture, official name, reading and romaji; a designated city's wards are listed, and the city itself is in JP_DESIGNATED_CITIES. Generated from Geolonia 住所データ (MIT).

Import it

import { JP_MUNICIPALITIES } from "@johnmorrisdotca/address-plus/jp";

Also exported from: @johnmorrisdotca/address-plus

Definition

const JP_MUNICIPALITIES: readonly JapaneseMunicipality[]

Examples

import { JP_MUNICIPALITIES } from "@johnmorrisdotca/address-plus/jp";

console.log(JP_MUNICIPALITIES.find((one) => one.code === "13101")?.name);
// → "千代田区"
千代田区

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/address-plus 1.7.0.