An open API service indexing awesome lists of open source software.

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)

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 note

Options:
--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)