Socket
Socket
Sign inDemoInstall

us-bank-account-validator

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

.prettierignore

7

CHANGELOG.md

@@ -1,4 +0,7 @@

unreleased
==========
# 0.2.0
- Add typescript types
# 0.1.0
- Initial release
{
"name": "us-bank-account-validator",
"version": "0.1.0",
"version": "0.2.0",
"description": "A library for validating US Bank Account routing and account numbers",
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {

@@ -12,6 +13,9 @@ "type": "git",

"scripts": {
"lint": "eslint .",
"test": "npm run lint && mocha",
"build": "gulp build",
"build-routing-list": "node scripts/build-routing-list"
"prepublishOnly": "npm run build",
"prebuild": "prettier --write .",
"build": "tsc --declaration",
"lint": "eslint --ext js,ts .",
"posttest": "npm run lint",
"test": "jest",
"build-routing-list": "ts-node scripts/build-routing-list"
},

@@ -21,15 +25,15 @@ "author": "Braintree <code@getbraintree.com> (https://www.braintreepayments.com/)",

"devDependencies": {
"browserify": "^13.1.1",
"chai": "^2.1.2",
"del": "^2.2.2",
"eslint": "2.7.0",
"eslint-config-braintree": "1.0.0",
"gulp": "^3.9.1",
"gulp-rename": "^1.2.2",
"gulp-size": "^2.1.0",
"gulp-streamify": "^1.0.2",
"gulp-uglify": "^2.0.0",
"mocha": "^3.0.0",
"vinyl-source-stream": "^1.1.0"
"@types/jest": "^25.2.1",
"@types/node": "^13.11.0",
"eslint": "^6.8.0",
"eslint-config-braintree": "^5.0.0-typescript-prep-rc.17",
"jest": "^25.3.0",
"prettier": "^2.0.4",
"ts-jest": "^25.3.1",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
},
"jest": {
"preset": "ts-jest"
}
}

@@ -1,10 +0,8 @@

US Bank Account Validator
=========================
# US Bank Account Validator
US Bank Account Validator provides validation utilities for US bank routing and account numbers. It includes first-class support for "potential" validity so you can use it to present appropriate UI to your user as they type.
Installation
------------
## Installation
You can install card-validator through npm.
You can install us-bank-account-validator through npm.

@@ -15,4 +13,3 @@ ```sh

Example
-------
## Example

@@ -22,5 +19,5 @@ In Node/Webpack/Browserify:

```js
var valid = require('us-bank-account-validator');
var valid = require("us-bank-account-validator");
var routingValidation = valid.routingNumber('4111');
var routingValidation = valid.routingNumber("4111");

@@ -39,14 +36,13 @@ if (routingValidation.isValid) {

<script>
var accountValidation = valid.accountNumber('4111');
var accountValidation = valid.accountNumber("4111");
if (accountValidation.isValid) {
renderFullyValidAccountNumber();
} else if (!accountValidation.isPotentiallyValid) {
renderInvalidAccountNumber();
}
if (accountValidation.isValid) {
renderFullyValidAccountNumber();
} else if (!accountValidation.isPotentiallyValid) {
renderInvalidAccountNumber();
}
</script>
```
API
---
## API

@@ -53,0 +49,0 @@ ### `valid.routingNumber(value: string): object`

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc