Skip to content
All work

11 · CLI tool · 2020

A little command-line app for notes, written in Node.js. Add, read, list and delete them from the terminal.

  • Node.js
  • yargs

Overview

Noted! is a command-line application for taking notes, with the basics: creating, reading, listing and deleting notes.

Setup

  1. Clone the repository.
  2. Run app.js with one of the commands below.

Commands

add: add a new note

Needs a title and a body.

node app.js add --title="new title" --body="this is new title"
Output of the add command

read: read a note

Needs a title.

node app.js read --title="new title"
Output of the read command

list: list every note

node app.js list
Output of the list command

remove: remove a note

Needs a title.

node app.js remove --title="new title"
Output of the remove command

Error handling

Error messages printed for invalid commands