🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

copy-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copy-cli

A CLI tool for copying files, with optional CSS/JS minification.

1.2.1
latest
Source
npm
Version published
Weekly downloads
12
-47.83%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

minify

FAQs

Package last updated on 20 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts