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 · French country module

FR_DEPARTMENTSconstant

The 101 departments of France, in order of their codes, each with its code (75, 2A, 971), its name and its region's. The code is how a postcode begins: its first two digits (three overseas), with Corsica's 20 split at 20200. From INSEE's Code officiel géographique (Licence Ouverte 2.0).

Import it

import { FR_DEPARTMENTS } from "@johnmorrisdotca/address-plus/fr";

Definition

const FR_DEPARTMENTS: readonly FrenchDepartment[]

Examples

import { FR_DEPARTMENTS } from "@johnmorrisdotca/address-plus/fr";

console.log(FR_DEPARTMENTS.find((department) => department.code === "2A"));
// → {"code":"2A","name":"Corse-du-Sud","region":"Corse"}
{ code: '2A', name: 'Corse-du-Sud', region: 'Corse' }

What it prints (run when this page was built)

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