LEI
Validation and control key generation for Legal Entity Identifier (LEI).
Usage
In node.js
var LEI = ; LEI; // falseLEI; // true LEI; // 969500KSV493XWY0PS33
API
isValid(value)
-> Boolean
Check requirements.
Returns if the LEI check digits are valid.
Required
- Value must be not
Null
- Value must be of type
String
- Value must respect format
^[0-9A-Z]{20}$
generate(value)
-> String
Check requirements.
Returns the LEI check digit appended to the value.
Required
- Value must be not
Null
- Value must be of type
String
- Value must respect format
^[0-9A-Z]{18}$