idnumbers
    Preparing search index...

    The Cédula de Identidad of Ecuador. This page is generated from the registry metadata of the library.

    Property Value
    Country code ECU, EC
    ID type Cédula de Identidad
    Official name Cédula de Identidad
    Also known as Cédula de Identidad; Cédula
    Display format PPTSSSSSSC
    Input masks ##########
    Length 10
    Example 1710000009
    Checksum yes
    Checksum algorithm Luhn (mod 10), weights [2,1,2,1,2,1,2,1,2] over digits 1-9
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('ECU', '1710000009').isValid; // true

    To bundle only this country, import its definition from idnumbers/countries/ecu and pass it to register():

    import { register, validateNationalId } from 'idnumbers/core';
    import { country } from 'idnumbers/countries/ecu';

    register(country);
    validateNationalId('ECU', '1710000009').isValid; // true