A implementation using JS/ES6 of a credit card number validator
Node v9.8.0
Webpack already generate a build JS file only for execution./build/app.build.js
, so if you want to skip the npm i
command, just run npm start
and you are clear see in console the result.
If you want to execute the code folow this steps:
-
npm i
-> to install all dependencies -
npm run dev
-> to run the code./index.js
-
build using
npm run build
- run
npm start
.
The test cases are in the test
directory. To run the tests suit simple run npm run test
and watch the results.
- babel
- webpack
- tests