This CLI-based notes app allows users to manage their notes efficiently using various commands. It's built with Node.js and uses Yargs for command-line argument parsing, and Chalk for colorful console outputs.
Create a new note.
Usage:
note add "Your note content here" --tags "tag1,tag2"
note
: The content of the note you want to create.--tags
or-t
: (Optional) Comma-separated tags to add to the note.
Example:
note add "Buy groceries" --tags "shopping,chores"
Retrieve all notes.
Usage:
note all
Get notes matching the given filter.
Usage:
note find <filter>
Remove a note by its ID.
Usage:
note remove <id>
Remove all notes.
Usage:
note clean
- Clone the repository.
git clone https://github.com/tanmaysuryawanshi/cli-notesapp-nodejs.git
- Navigate to the project directory
cd cli-notesapp-nodejs
- Navigate to the project directory
npm install
- create a link using npm
npm link
The app is tested using Jest. To run tests, use:
npm test