Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 1.1 KB

README.md

File metadata and controls

22 lines (21 loc) · 1.1 KB

notes-app

Command line notes application written in nodejs.

It has four commands namely; add, remove, list and read

On cloning this repo, run the command below: npm install

Add Command

The add command requires the command line arguments; title and body.

Example:

node app.js add --title="some title" --body="some content"

Remove Command

The remove command requires just one command line argument; title.

Example:

node app.js remove --title="some title"

List Command

The List command requires doesn't accept any command line argument

Example:

node app.js list

Read Command

The Read command requires the command line argument; title

Example:

node app.js read --title="some title"

All the operations are being carried out on the notes.json file located in the file.
Feel free to mess with the code and if you've got question(s), mail me with a click