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

expandAustralianStreetTypefunction

The word an AS4590 street type stands for: Pde is Parade. Any other text comes back as it is.

Import it

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

Definition

function expandAustralianStreetType(type: string): string

Parameters

NameTypeDescription
typestring

The abbreviation, in any letter case.

Returns

string

The word.

Examples

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

console.log(expandAustralianStreetType("CRES"));
// → "Crescent"
Crescent

What it prints (run when this page was built)

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