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