Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denisecaze/dc-card-validator-lib
Laboratoria Bootcamp - Sprint 4 (final product) - a library designed to validate credit cards using Mocha, Chai and NYC to perform unit tests
https://github.com/denisecaze/dc-card-validator-lib
chai css3 html5 javascript lodash mocha nyc
Last synced: about 2 months ago
JSON representation
Laboratoria Bootcamp - Sprint 4 (final product) - a library designed to validate credit cards using Mocha, Chai and NYC to perform unit tests
- Host: GitHub
- URL: https://github.com/denisecaze/dc-card-validator-lib
- Owner: denisecaze
- Created: 2018-09-01T22:15:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T12:38:33.000Z (about 6 years ago)
- Last Synced: 2024-10-29T15:45:45.724Z (about 2 months ago)
- Topics: chai, css3, html5, javascript, lodash, mocha, nyc
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/dc-card-validator-lib
- Size: 3.57 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Credit Card Validator
A library designed to validate credit cards using Luhn's algorithm.## Installation
+ Requires Node.js, NPM and Lodash. If you do not have it, go to:
1. [Node + NPM](https://nodejs.org/en/download/);
2. [Lodash](https://lodash.com/);
+ In the terminal, go to the folder where you want to use the library and then type:
```
$ npm install dc-card-validator-lib
```## Use
```
$ node
> const library = require("dc-card-validator-lib")
> library.cardValidator(5234210238826905)
> //true
```## Technology Stack
+ HTML5
+ CSS3
+ JavaScript
+ NPM
+ Mocha
+ Chai
+ NYC
+ Lodash## Oficial Roadmap
#### versão 3.0.0 (scheduled for January 2019)
+ Implementation of more comprehensive validation, including verifier code and validity.#### version 2.0.0 (scheduled for November 2018)
+ Identification of the main flags (Visa, MasterCard, Diners, Elo and Hipercard), which have different configurations, between 13 and 16 digits.#### version 1.0.0 (released)
+ Verifies IF a credit card is valid or not, returning **true** or **false**.