https://github.com/angristan/notes-node
CLI tool to store notes in a JSON file (my first node.js project)
https://github.com/angristan/notes-node
Last synced: 4 months ago
JSON representation
CLI tool to store notes in a JSON file (my first node.js project)
- Host: GitHub
- URL: https://github.com/angristan/notes-node
- Owner: angristan
- License: mit
- Created: 2018-07-14T17:30:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-14T19:10:59.000Z (about 7 years ago)
- Last Synced: 2025-03-15T15:45:02.294Z (7 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notes-node
A CLI tool to store notes in a JSON file.
This is my first node.js project thanks to this [Udemy course](https://www.udemy.com/the-complete-nodejs-developer-course-2/).
## Installation
```sh
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 noteOptions:
--version Show version number [boolean]
--help Show help [boolean]
```### Example
```sh
$ 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](https://github.com/Angristan/notes-node/blob/master/LICENSE)