Reference · Parsing, formatting and shared types
STREET_TYPE_EXPANSIONSconstant
Each USPS street type abbreviation in lower case, to the word in full.
Import it
import { STREET_TYPE_EXPANSIONS } from "@johnmorrisdotca/address-plus";
Definition
const STREET_TYPE_EXPANSIONS: Record<string, string> = {
ave: "Avenue",
blvd: "Boulevard",
cir: "Circle",
ct: "Court",
dr: "Drive",
ln: "Lane",
pl: "Place",
rd: "Road",
st: "Street",
ter: "Terrace",
trl: "Trail",
way: "Way",
hwy: "Highway",
pkwy: "Parkway",
}
Examples
import { STREET_TYPE_EXPANSIONS } from "@johnmorrisdotca/address-plus";
console.log(STREET_TYPE_EXPANSIONS["blvd"]);
// → "Boulevard"BoulevardWhat it prints (run when this page was built)