The Cédula de Identidad of Costa Rica. This page is generated from the registry metadata of the library.
| Property | Value |
|---|---|
| Country code | CRI, CR |
| ID type | Cédula de Identidad |
| Official name | Cédula de Identidad |
| Also known as | Cédula de Identidad; Cédula Física |
| Display format | #-####-#### |
| Input masks | #-####-#### |
| Length | 9 |
| Example | 1-0913-0259 |
| Checksum | no |
| Checksum algorithm | None -- no check digit exists; validity is confirmed via Registro Civil / TRIBU-CR database lookup, not arithmetic |
| Parsable | yes |
The root entry registers every country:
import { validateNationalId } from 'idnumbers';
validateNationalId('CRI', '1-0913-0259').isValid; // true
To bundle only this country, import its definition from idnumbers/countries/cri and pass it to register():
import { register, validateNationalId } from 'idnumbers/core';
import { country } from 'idnumbers/countries/cri';
register(country);
validateNationalId('CRI', '1-0913-0259').isValid; // true