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 · Parsing, formatting and shared types

US_STREET_TYPESconstant

Every street type USPS Publication 28 lists, and the common spellings of each, in lower case, to its USPS abbreviation in lower case.

Import it

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

Definition

const US_STREET_TYPES: Record<string, string>

Examples

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

console.log(US_STREET_TYPES["boulevard"]);
// → "blvd"
blvd

What it prints (run when this page was built)

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