This is a simple CLI-based Notes app built using Node.js. You can use this app to create, read, remove, and list notes through the command line interface.
- Add a new note with a title and body.
- Remove an existing note by title.
- Read a specific note by title.
- List all saved notes.
Make sure you have Node.js and npm installed. You can download and install Node.js from nodejs.org.
-
Clone or download the repository:
git clone https://github.com/your-username/notes-app.git
-
Navigate to the project folder:
cd notes-app -
Install the required dependencies:
npm install
-
Now you are ready to use the app!
Once the app is set up, you can use the following commands via the command line.
To add a new note, use the following command:
node app.js add --title="Your Note Title" --body="Your note content goes here."
### 1. Remove new note
To remove new note, use the following command:
```bash
node app.js remove --title="Your Note Title"
### 1. Read note
To read notes, use the following command:
```bash
node app.js read --title="Your Note Title"
### 1. List all note
To list all notes, use the following command:
```bash
node app.js list
Technologies Used
1 Node.js for backend logic
2 Chalk for colorful terminal output
3 yargs for command-line argument parsing
Versions
"chalk": "^2.4.1",
"yargs": "^17.7.2"