Socket
Socket
Sign inDemoInstall

node-verhoeff

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-verhoeff - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc