Bulgarian Control Numbers
🇧🇬 Проверка на контролни цифри ползвани в България - ЕГН, ЛНЧ, Булстат, IBAN.
Install
npm install bulgarian-control-numbers
or
yarn add bulgarian-control-numbers
or
Usage
As a node.js module:
const BGCN = default; const egn = BGCN;egnisValid // trueegnvalue // '0550290476'egngender // 'f'egnbirthdayday // 29egnbirthdaymonth // 10egnbirthdayyear // 2005 const pn = BGCN; // ЛНЧpnisValid // true const bulstat = BGCNbulstatisValid// truebulstatvalue // '131071587' const iban = BGCN;ibanisValid// trueibanvalue // 'BG15UNCR70001522604629'ibanaccountNo // '22604629'ibanbic // 'UNCRBGSF' BGCN // trueBGCN // true
In a web page:
Development
Run yarn install
to install dependencies.
Run yarn test
to run unit tests.
Run yarn build
to create a build.
References
- БСВ Консултинг - Контролни цифри ползвани в България
- Единен граждански номер
- International Bank Account Number