Skip to content

Commit

Permalink
Merge pull request #6 from braintree/standalone
Browse files Browse the repository at this point in the history
Add gulp task for standalone browserify bundle building to dist/
  • Loading branch information
mrak committed May 15, 2015
2 parents 209d8c5 + b7f42b6 commit 4b9698e
Show file tree
Hide file tree
Showing 9 changed files with 2,387 additions and 23 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
.DS_STORE
dist
npm-debug.log
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test/
gulpfile.js
.travis.yml
.gitignore
.eslintrc
.eslintignore
.nvmrc
bower.json
.npmignore
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ A typical use case in a credit card form is to notify the user if the data they

Credit Card Validator will also provide a determined card type (using [credit-card-type](https://github.com/braintree/credit-card-type)). This is useful for scenarios in which you wish to render an accompanying payment method icon (Visa, MasterCard, etc.). Additionally, by having access to the current card type, you can better manage the state of your credit card form as a whole. For example, if you detect a user is entering (or has entered) an American Express card number, you can update the `maxlength` attribute of your `CVV` input element from 3 to 4 and even update the corresponding `label` from 'CVV' to 'CID'.

## Download

You can install `card-validator` through `npm`. The npm module also includes the built, UMD bundle and its minified variant under `dist/`

```
npm install card-validator
```

## Example

```javascript
Expand Down
Loading

0 comments on commit 4b9698e

Please sign in to comment.