To install npm dependencies run:
npm install
npm run main
npm run main -- -h
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.
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 files are in "app/test". Run test with:
npm run test
- Scripts are in "app".
- trim function is in "manageTrim.js".
- CSV example files are in "rc".
- Test files are in "app/test".