NodeJS based CLI application to read from a provided file and combine its information with data from an API and output a new file.
Tool | Version |
---|---|
Node | >= 10 < 11 |
NPM | >= 6 |
- Run
npm install
from the project directory to update the dependencies - Once dependencies are installed, run
npm link
from the project directory. This will link a new CLI command in your enviornmentappndr
. Linking will allow you to run the CLI app from your Terminal and from any directory
- Run
appndr
from any location in your Terminal
Usage: appndr [options] [command]
Options: -v, --version output the version number -h, --help
display help for commandCommands:
commands description config configure environment parse parse a file for processing help [command] display help for command
- Run
appndr config --init
to set up a new environment. Environment config are stored as a JSON file in$HOME/.config/configstore
- Run
appndr config --reset
to reset the configuration data. If no configuration is found when running theappndr parse
command, it will default to Development config.
- Run
appndr parse --in $HOME/input.csv --out $HOME/output.csv
to read a CSV file. The CLI app only support CSV files a the moment. When a file that is not a csv file for passed in the--in
or--out
options, it will outError: File type is not supported