Reference · British country module
UKNationCodetype
The code of one of the four nations of the United Kingdom, as ISO 3166-2:GB writes it after GB-.
Import it
import type { UKNationCode } from "@johnmorrisdotca/address-plus/gb";
Also exported from: @johnmorrisdotca/address-plus
Definition
type UKNationCode = "ENG" | "NIR" | "SCT" | "WLS";
Examples
import { getNationFromUKPostcode } from "@johnmorrisdotca/address-plus/gb";
import type { UKNationCode } from "@johnmorrisdotca/address-plus/gb";
console.log(getNationFromUKPostcode("CF10 1AA"));
// → "WLS"WLSWhat it prints (run when this page was built)