Skip to content

CLI tool to store notes in a JSON file (my first node.js project)

License

Notifications You must be signed in to change notification settings

angristan/notes-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notes-node

A CLI tool to store notes in a JSON file.

This is my first node.js project thanks to this Udemy course.

Installation

git clone https://github.com/Angristan/notes-node.git
cd notes-node
npm install

Usage

$ node app.js --help
app.js [command]

Commands:
  app.js add     Add a new note
  app.js list    List all notes
  app.js read    Read a note
  app.js remove  Remove a note

Options:
  --version  Show version number                     [boolean]
  --help     Show help                               [boolean]

Example

$ node app.js add -t "To do" -b "Push my repo to Github"
Note created
===
Title: To do
Body: Push my repo to Github

$ node app.js list
Printing 1 note(s).
===
Title: To do
Body: Push my repo to Github

$ node app.js read -t "To do"
Note found
===
Title: To do
Body: Push my repo to Github

$ node app.js remove -t "To do"
Note removed!

$ node app.js list
Printing 0 note(s).

License

MIT

About

CLI tool to store notes in a JSON file (my first node.js project)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published