/credit-card-challenge

Challenge to create a validator for credit card numbers

Primary LanguageJavaScript

Credit Card Challenge

A implementation using JS/ES6 of a credit card number validator

Running

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.

Otherwise

If you want to execute the code folow this steps:

  1. npm i -> to install all dependencies

  2. npm run dev -> to run the code ./index.js

  3. build using npm run build

  • run npm start.

Tests

The test cases are in the test directory. To run the tests suit simple run npm run test and watch the results.

Features

  • babel
  • webpack
  • tests