The application helps to make a todo list with notes.
A note includes title and a body with description of the note.
Every note has created date. Advanced version has some new features that doesn't have before.
The application needs to have the following dependencies:
- npm --version 6.1.0
- node --version 8.11.3
Before start the program is supposed to run the command [npm install].
It downloads needed modules and prepars the programm for start.
There is a list of modules and their versions:
- yargs version ^11.0.0
- xlsx version 0.13.1
- excel4node version ^1.3.6
- Help
- Add a new note
- Remove a note
- Read a note
- Show list of all notes
- Clear list of notes
- Update a note by title
- Sort list of notes
Command [add] creates new note with title [Title of note] and a body [Body of note].
Also the programm add current(created) date and time as a property date to each note.
Command [remove] removes a note with title [Title of note] if it es on the list and write on console about success of operation.
If there isn't a note with title [Title of note] the program write a message on console about that.
Command [read] shows a note with title [Title of note]. In other words show all note with body and created date.
Command [list] shows all notes on console.
Command [clear] delete all notes. The list becomes empty.
Command [update] body of existed note with title [Title of a note].
If there isn't a note with title [Title of a note] the programm shows a message on console.
Command [sort] allowes to sort all notes by kind of sort
with ascending or descending direction of the sort.
- note lenth, title length, title alphabet, date.
- ascending, descending.
Write excel.xlsx file with all notes from todo_app_advanced list.
Read all notes from excel file and add them into todo_app_advanced list.
If there is a note with the same title in the list, the application ignores it.
##Help:
node index.js --help.
##Usage:
index.js --title [string] --body [string]
index.js sort --kind [string] --options [string]
index.js --file [path to file.xlsx]
##Commands:
index.js add add a new note [aliases: a]
index.js list show all notes [aliases: ls]
index.js remove remove a note by title [aliases: rm]
index.js read read a note by title [aliases: r]
index.js clear show all notes [aliases: clr]
index.js sort sort list of notes [aliases: s]
index.js update update an existing note or add new if it doesn't exist
before [aliases: u]
index.js readExel Read notes from Exel file [aliases: rex]
index.js writeExel Write notes to Exel file [aliases: wex]
##Options:
--version Show version number [boolean]
-t, --title Title of a note
-b, --body Body of a note
--Path to file
-h, --help Show help [boolean]
--kind, -k kind of sort. Can be [note length, nlength, nl], [title
length, tlength, tl], [title alphabet, tl], [date, d]
--options, -o Options of sort.
Valid options: descending or <, ascending or [>]
##Examples: node notes.js add --title 'title add new' --body 'body add new' node notes.js add -t 'title add new' -b 'body add new' node notes.js --title='Title of a note' --body='Body of a note' node index.js sort --kind kind --options ascending node index.js readExel --file ./resources/notes.xlsx node index.js writeExel --file ./resources/notes.xlsx
###Created by Dzmitry Karneyenka