The Uniform Civil Number of Bulgaria. This page is generated from the registry metadata of the library.
| Property | Value |
|---|---|
| Country code | BGR, BG |
| ID type | Uniform Civil Number |
| Official name | Единен граждански номер (ЕГН) |
| Also known as | Uniform civil number; Единен граждански номер; Edinen grazhdanski nomer; ЕГН; EGN |
| Display format | YYMMDDRRGC |
| Input masks | ########## |
| Length | 10 |
| Example | 7501020018 |
| Checksum | yes |
| Checksum algorithm | Weighted sum mod 11 (weights 2,4,8,5,10,9,7,3,6) |
| Parsable | yes |
The root entry registers every country:
import { validateNationalId } from 'idnumbers';
validateNationalId('BGR', '7501020018').isValid; // true
To bundle only this country, import its definition from idnumbers/countries/bgr and pass it to register():
import { register, validateNationalId } from 'idnumbers/core';
import { country } from 'idnumbers/countries/bgr';
register(country);
validateNationalId('BGR', '7501020018').isValid; // true