Reference · Parsing, formatting and shared types
COUNTRIESconstant
The country codes the parser reports: US, CA and JP.
Import it
import { COUNTRIES } from "@johnmorrisdotca/address-plus";
Definition
const COUNTRIES: { readonly CANADA: "CA"; readonly JAPAN: "JP"; readonly UNITED_STATES: "US"; } = {
CANADA: "CA",
JAPAN: "JP",
UNITED_STATES: "US",
} as const
Members
| Name | Type | Description |
|---|---|---|
CANADA | "CA" | |
JAPAN | "JP" | |
UNITED_STATES | "US" |
Examples
import { COUNTRIES } from "@johnmorrisdotca/address-plus";
console.log(COUNTRIES.JAPAN);
// → "JP"JPWhat it prints (run when this page was built)