A command line interface (CLI) note application developed using Node.js. This application focuses on Node.js fundamentals.
The application involves CRUD operations where, user can add, delete, read and list all the notes from command line. If there are no notes generated in the application then first it creates a JSON file where the notes are appended.
Following command lists all the operations that can be performed in Note application
$ node app.js --help
Run the following command to install dependencies in package.json
npm install
Third party NPM modules used in this application to fetch the input from the user
I have used Yargs
- for the parsing of command line arguments
- .command() is used to configure all the four commands that are used in this application, to set up description and help functionality
- .help() -> Sets up Yarg to return useful information when user runs the program. Returns all the options available
--save flag is used to save the dependency in package.json
Run the following commands to save following dependencies
npm install lodash --save
npm install yargs --save