This repo contains a CLI tool that allows you use the command line to pass information to your program.
yarn # Install dependenciesThe program is written in Typescript, it would need to be compiled the first time and everytime you make changes. A compile and compile:watch script have been added to help with that. Open a new terminal windown and run
yarn compile
# yarn compile:watch # Run this to compile when any change is made.The cli tool is email-analysis and is documented below.
yarn link # Make the cli tool available in your path.
email-analysis --helpNote: This is only available after running yarn link above.
The script takes two arguments, input and output
input should be a list of csv files to be provided to your program. This can be a glob
output should be the path where a JSON file of your report should be written.
email-analysis fixtures/inputs/small-sample.csv report-analysis.jsonemail-analysis 'fixtures/inputs/*.csv' report-analysis.jsonemail-analysis validate fixtures/inputs/small-sample.csv report-validation.csvemail-analysis validate 'fixtures/inputs/*.csv' report-validation.csv