Skip to content

lxghtless/clipfs

Repository files navigation

clipfs

A clipboard module for interacting with the file system.

  

install

install as a cli

$ npm i -g clipfs

usage

show clipboard content (available in combination with any command)

$ clipfs -s

copy file to clipboard

$ clipfs ~/some.txt

write clipboard to file

$ clipfs -o ~/clipboard.txt

copy file to clipboard then write clipboard to file

$ clipfs ~/some.txt -o ~/clipboard.txt

pipe text into clipboard

$ cat ~/some.txt | clipfs

pipe text into clipboard then write clipboard to file

$ cat ~/some.txt | clipfs -o ~/clipboard.txt

help

$ clipfs -h 
$ clipfs --help

Configuration

# log levels: trace, debug, info, message, error, silent
# default: message
CLIPFS_LOG_LEVEL=

# use colors in logs: true or false
# default: false
CLIPFS_LOG_COLORS=