Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ABAValidator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ABAValidator - npm Package Compare versions

Comparing version 0.0.3 to 1.0.0

8

package.json
{
"name": "ABAValidator",
"version": "0.0.3",
"version": "1.0.0",
"author": "James Eggers <james.r.eggers@gmail.com> (http://www.jamesreggers.com/)",

@@ -9,3 +9,3 @@ "description": "A validation module for browsers and Node.js to validate an American Bankers Association Routing Number used in ACH payments.",

"type": "git",
"url": "git://github.com/JamesEggers1/node-ABAValidator"
"url": "git://github.com/JamesEggers1/node-ABAValidator.git"
},

@@ -22,3 +22,7 @@ "main": "./src/aba-validation",

"url": "https://github.com/JamesEggers1/node-ABAValidator/issues"
},
"devDependencies": {
"should" : "*",
"mocha" : "*"
}
}

@@ -21,14 +21,23 @@ ABAValidator

#### Node.js ####
var aba = require("ABAValidator").ABAValidator;
var is_valid = aba.validate("123123123"); // should respond true.
```javascript
var aba = require("ABAValidator").ABAValidator;
var is_valid = aba.validate("123123123"); // should respond true.
```
In addition to being usable as a Node.js module, the validator can also be used client-side in the user's web browser.
#### Html ####
<script type="text/javascript" src="path/to/aba-validation.js"></script>
```html
<script type="text/javascript" src="path/to/aba-validation.js"></script>
```
#### JavaScript ####
var aba = ABAValidator;
var is_valid = aba.validate("123123123"); // should respond true.
```javascript
var aba = ABAValidator;
var is_valid = aba.validate("123123123"); // should respond true.
```
By default, the ABAValidator module places itself into the global scope in the browser. If you would prefer to NOT have it be directly attached to the `window` object, you can add your own `namespace` at the top of the aba-validator.js file.

@@ -35,0 +44,0 @@

Sorry, the diff of this file is not supported yet

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