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 · Australian country module

AU_EXTERNAL_TERRITORY_POSTCODESconstant

The postcodes the Australian Bureau of Statistics places, wholly or partly, in the Other Territories: Jervis Bay, Norfolk Island, Christmas Island and the Cocos (Keeling) Islands. Which state's code Australia Post writes beside each is not in the open data, so the validator does not judge the state given with one.

Import it

import { AU_EXTERNAL_TERRITORY_POSTCODES } from "@johnmorrisdotca/address-plus/au";

Definition

const AU_EXTERNAL_TERRITORY_POSTCODES: readonly string[] = ["2540", "2899", "6798", "6799"]

Examples

import { AU_EXTERNAL_TERRITORY_POSTCODES } from "@johnmorrisdotca/address-plus/au";

console.log(AU_EXTERNAL_TERRITORY_POSTCODES);
// → ["2540","2899","6798","6799"]
[ '2540', '2899', '6798', '6799' ]

What it prints (run when this page was built)

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