The Driver Licence Number of New Zealand. This page is generated from the registry metadata of the library.
| Property | Value |
|---|---|
| Country code | NZL, NZ |
| ID type | Driver Licence Number |
| Official name | Driver Licence Number |
| Also known as | Driver License; Driver Licence Number |
| Display format | XXXXXXX(X) |
| Input masks | XXXXXXXX, XXXXXXX |
| Length | 7 to 8 |
| Example | AB123456 |
| Checksum | no |
| Checksum algorithm | None (format/length and trailing-number blacklist only) |
| Parsable | no |
The root entry registers every country:
import { validateNationalId } from 'idnumbers';
validateNationalId('NZL', 'AB123456').isValid; // true
To bundle only this country, import its definition from idnumbers/countries/nzl and pass it to register():
import { register, validateNationalId } from 'idnumbers/core';
import { country } from 'idnumbers/countries/nzl';
register(country);
validateNationalId('NZL', 'AB123456').isValid; // true