ABAValidator
Advanced tools
Comparing version 0.0.3 to 1.0.0
{ | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6368
0
52
2