The following is a backend application, which is used to store notes in a json file and perform certain operations in it. It uses yargs for parsing the command line arguments and chalk for coloring the output.
Software | Version |
---|---|
Node | v14.14.0 or above |
npm | v6.14.8 or above |
# Bash Code
npm install # To install the required dependencies
node app.js option --arguments
Options | Arguments required |
---|---|
list | no argument |
add | --title="Desired title" --body="Desired body" |
remove | --title="Title of note to delete" |
read | --title="Title of the note to read" |
node app.js add --title="Shopping" --body="Vegetables,Pens, Condoms"
node app.js list
node app.js read --title="Shopping"
node remove --title="Shopping"