Node.js command line application built for creating, removing and listing notes.
To get this project on your local machine, you need to have Node.js.
Install the project by navigating to the note-app directory in bash and running
npm installThis will install all the necessary dependencies.
Main functionality of the application will be shown here . To see the help, run:
node app.js --helpYou can add a note simply by runnning the following command in the project directory:
node app.js add -t=“Title of Note" -b=“Body of the note"'t’ is alias for title and 'b’ is alias for body, so you alternatively write like this too:
node app.js add --title="Title of Note " --body="Body of the note "To list all notes run the following command
node app.js listThis will list all the notes with their information, separated by ----------
To show a specific note, run:
node app.js read -t title_of_noteWhere title_of_note is the title of the note you want to read
To remove a note,
node app.js remove -t sometitleWhere sometitle is the title of one of your notes.
- Node.JS - Platform
- Yargs - Parsing command line arguments
- Lodash - Makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc.
- Eklavya Chopra
- Thanks to Andrew Mead for creating the course The Complete Node.js Developer Course 2.0