Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

suppermancool/topcoder_dataLookupTrimming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

topcoder_dataLookupTrimming

Installation

To install npm dependencies run:

npm install

Start the Application

npm run main

Show parameter usage

npm run main -- -h

Parameter usage

Params

    -i, --input : Path to input csv file. Default value: rc/pci_example.csv
    -o, --output : Path to output csv file. Default value: rc/export_pci_example.csv
    -l, --outputlog : Path to output csv log file. Default value: rc/export_pci_example_log.csv
    --maskcreditcard : Mask to replace real card number. Default value: <CREDIT_CARD>
    -h, --help : Show params structure.

Example for parameter

Run app with input=rc/pci_example.csv, output=rc/export_pci.csv, output log=rc/export_pci_log.csv, mask for credit card = <CREDIT_CARD>:

npm run main -- -i "rc/pci_example.csv" -o "rc/export_pci.csv" -l "rc/export_pci_log.csv" --maskcreditcard "<CREDIT_CARD>"

Test

  • Test files are in "app/test". Run test with:

npm run test

Project structure

  • Scripts are in "app".
  • trim function is in "manageTrim.js".
  • CSV example files are in "rc".
  • Test files are in "app/test".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published