@skylab/verhoeff
v1.0.3
Published
verhoeff checksum generator and validator
Downloads
14
Readme
Verhoeff Check
Find Verhoeff check digit
checksum(number)
returns checksum digit for a number
$ var verhoeff = require('@skylab/verhoeff');
$ var num = 78639;
$ var checksum = verhoeff.checksum(num);
$ console.log(checksum);
2
Verifying if a number is valid
validate(number)
verifies whether a number has a valid verhoeff checksum digit at end
$ var verify = verhoeff.validate(786392);
$ console.log(verify);
true
LICENSE
MIT License