Project notes is a command-line interface npm package that lets you maintain quick notes about your project right from your terminal.
npm i project-notes
Or install as a dev dependency
npm i project-notes --save-dev
In app.js file
const notes=require('project-notes')
notes.use()
Now from the terminal use the following commands
-
To add a note
node app.js add --title="Fix css bug" --body="Fix the button position bug in the homepage"
New note added!
-
To list all the notes
node app.js list
Your Notes 1. Fix css bug 2. Navbar
-
To read a note
node app.js read --title="Fix css bug"
Fix css bug Fix the button position bug in the homepage
-
To read all the notes
node app.js readall
Your Notes 1. Fix css bug Fix the button position bug in the homepage 2. Navbar Make the navbar responsive
-
To remove a note
node app.js remove --title="Fix css bug"
Note removed!
-
To remove all the notes
node app.js removeall
All notes removed successfully
-
For help
node app.js --help
app.js [command] Commands: app.js add Add a new note app.js remove Remove a note app.js read Read a note app.js list List all the note app.js readall Read all the note app.js removeall Remove all the notes Options: --help Show help [boolean] --version Show version number [boolean]