Reference · Parsing, formatting and shared types
getAddressAbbreviationsfunction
Every abbreviation the formatters use: street types, directionals, secondary units, states and provinces.
Import it
import { getAddressAbbreviations } from "@johnmorrisdotca/address-plus";
Definition
function getAddressAbbreviations(): AddressAbbreviations
Returns
AddressAbbreviations
One map per kind, each from the full word to its abbreviation.
Examples
import { getAddressAbbreviations } from "@johnmorrisdotca/address-plus";
console.log(getAddressAbbreviations().streetTypes.avenue);
// → "Ave"AveWhat it prints (run when this page was built)