The CSV Parser is built using NodeJS. It has a command line (commander) package that allows for user input.
First:
Open a Terminal and cd into the project directory
Next we need to install the node packages (babel, jest, commander). We do this with this command:
npm install
Now we can start the csv parser by running this command:
node csv-parser-cli.js -f <filename> -s <duplicateStrategy>
*** Note: Replace the <filename>
with a filename that is found in /csv-files, and <duplicateStrategy>
with email
, phone
, or both
***
Once the command is executed, the csv will begin to parse the input file located in /csv-files
and then an output.csv
file will be created in /output-csv
directory
npm run test