This is a simple command-line application for managing notes. It allows you to add, remove, list, and read notes using commands. The application uses Node.js and the yargs library for command-line argument parsing.
- Add Note: Add a new note with a title and body.
- Remove Note: Remove a note by its title.
- List Notes: List all the notes.
- Read Note: Read a note by its title.
-
Clone the repository:
git clone https://github.com/your-username/notes-app.git
-
Navigate to the project directory:
cd notes-app -
Install the dependencies:
npm install
To add a new note, use the add command with --title and --body options:
```bash
node app.js add --title="Note Title" --body="Note body"
```
To remove a note, use the remove command with the --title option:
```bash
node app.js remove --title="Note Title"
```
To list all the notes, use the list command:
```bash
node app.js list
```
To read a specific note, use the read command with the --title option:
```bash
node app.js read --title="Note Title"
```
- app.js: Main application file that sets up yargs commands.
- notes.js: Contains functions for adding, removing, listing, and reading notes.
- notes.json: JSON file where notes are stored.