node-verhoeff
Advanced tools
Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "node-verhoeff", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Simple implementation of verhoeff checksum algorithm in NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Verhoeff | ||
Simple implementation of verhoeff checksum implentation in node JS. | ||
## Aadhaar numbers & verhoeff | ||
@@ -7,2 +8,3 @@ Did you know aadhaar numbers have last digit as a verhoeff checksum. The idea behind this is to quickly identify typing/data-entry errors on the entry machine. | ||
https://groups.google.com/forum/#!msg/aadhaarauth/eB5hOU-Qtq0/YDcWPdPOXowJ | ||
# Usage | ||
@@ -22,2 +24,3 @@ ```sh | ||
``` | ||
##### Original code by | ||
@@ -24,0 +27,0 @@ Sergey Petushkov, 2014 |
@@ -14,3 +14,3 @@ var thisModule = require('../index.js'); | ||
it('Should validate aadhaar correctly', function() { | ||
expect(thisModule.validateAadhaar('773393045190')).to.equal(true); | ||
expect(thisModule.validateAadhaar('773393045189.8')).to.equal(true); | ||
expect(thisModule.validateAadhaar('773393045191')).to.equal(false); | ||
@@ -17,0 +17,0 @@ expect(thisModule.validateAadhaar('496858245152')).to.equal(true); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4355
30