Iso7064 Mod 97 10
Calculate and validate numbers to avoid types mistakes, common used by IBAN and NIB.
Install
$ npm install node-iso7064-mod9710
Usage
; Mod9710;//=> 79444 Mod9710;//=> true Mod9710;//=> false Mod9710;//=> 44 Mod9710;//=> 794 Mod9710;//=> 44
API
verify(number : string) : boolean
Verify if the number is a valid number, well typed.
number
Type: string
IBAN or NIB number or any number generated with check digit mod97-10
encode(number : string) : string
Encode the number with a check digits
number
Type: string
IBAN or NIB number or any number generated with check digit mod97-10
getCheck(number : string) : string
Return the check digits computed by encode method
number
Type: string
IBAN or NIB number or any number generated with check digit mod97-10
getData(number : string) : string
Return the number without the check digit
number
Type: string
IBAN or NIB number or any number generated with check digit mod97-10