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 · /br

BR_STATESconstant

The states of Brazil and the Federal District. Each has its code, its ISO 3166-2 code and its name in English and in Japanese, copied from kuni when the tables are made.

Import it

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

Definition

const BR_STATES: readonly PostcodeRegion[]

Examples

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

console.log(BR_STATES.map((region) => region.code).slice(0, 3));
// → ["AC","AL","AM"]
[ 'AC', 'AL', 'AM' ]

What it prints (run when this page was built)

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