mini-copy-cli
copy from file to clipboard | paste into file from clipboard & support sharing clipboard between wsl and windows.
Last updated a year ago by lemonclown .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mini-copy-cli 
SYNC missed versions from official npm registry.

Install

npm install -g mini-copy-cli

Usage

# output the content of the system clipboard
mcp


# copy the content of data.in to the system clipboard
mcp 'the data'
mcp -i data.in
mcp < data.in
cat data.in | mcp
echo 'Hello world' | mcp


# write the content of system clipboard into data.out
mcp >> data.out             # use linux pipeline, redirected the content of system clipboard to data.out
mcp -o data.out             # (recommended way)
mcp -o data.out -e UTF-8    # specified the content's encoding
mcp -o data.out -f          # if the data.out is exist, overwrite it without confirmation.


# show usage
mcp --help

further usage

Current Tags

  • 1.3.4                                ...           latest (a year ago)

9 Versions

  • 1.3.4                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.14                                ...           a year ago
  • 1.2.10                                ...           a year ago
  • 1.2.8                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |