@rasch/note

0.1.0 • Public • Published

note

Ultra minimal shell script for CLI notes

Usage

Notes are created in NOTE_DIR/YYYY-MM.txt files, where YYYY-MM is the current year and month.

# Set the note directory using the NOTE_DIR environment variable in the
# shell configuration file, such as `.bashrc`, `.profile`, etc.
NOTE_DIR=/data/note

# write a note in NOTE_DIR
n A little note to myself
n "Don't forget to quote or escape as needed"


# write command output to note file
ls logs/ | n

# open the note file
n

# multiline note
cat <<EOF | n
some text on line one
and line two
line 3, etc.
EOF

# or use a quoted string with literal line breaks
n 'hello, i am a multi-
line string'

/@rasch/note/

    Package Sidebar

    Install

    npm i @rasch/note

    Weekly Downloads

    0

    Version

    0.1.0

    License

    0BSD

    Unpacked Size

    2.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • rasch