copy-cli

1.2.1 • Public • Published

copy

A CLI tool for copying files, either from a local path, a remote HTTP(s) address, or stdin. Optionally, the output file can be minified using JS or CSS minification.

Installation

$ sudo npm install -g copy-cli

Usage

Basic usage:

$ copy file.jpg > /path/to/new.jpg

Remote files:

$ copy https://mydomain.com/myfile.txt > myfile.txt

Standard input:

echo "alert('hello world')" | copy --minify=js > hello.min.js

Options

--help, -?        Displays help information
--minify, -m      Assign this option "js" or "css" to minify the output

Useful Information

The CSS minifiction does NOT follow @import directives.

License

MIT License (https://github.com/JoshuaWise/copy/blob/master/LICENSE)

Package Sidebar

Install

npm i copy-cli

Weekly Downloads

19

Version

1.2.1

License

MIT

Last publish

Collaborators

  • joshuawise