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

cpy-cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpy-cli

Copy files

5.0.0
latest
Source
npm
Version published
Weekly downloads
447K
-3.71%
Maintainers
1
Weekly downloads
 
Created

What is cpy-cli?

The cpy-cli npm package is a command-line interface for the cpy module, which is used to copy files and directories with various options. It is designed to be simple and efficient, making it easy to copy files from one location to another with additional features like glob patterns, renaming, and more.

What are cpy-cli's main functionalities?

Basic File Copy

This command copies the file 'source.txt' to the 'destination' directory.

cpy 'source.txt' 'destination/'

Copy Multiple Files

This command copies all .txt files from the 'src' directory to the 'dist' directory using glob patterns.

cpy 'src/*.txt' 'dist/'

Rename Files While Copying

This command copies 'source.txt' to the 'destination' directory and renames it to 'renamed.txt'.

cpy 'source.txt' 'destination/renamed.txt'

Copy Files Recursively

This command copies all files and directories from 'src' to 'dist' recursively.

cpy 'src/**/*' 'dist/'

Preserve Timestamps

This command copies 'source.txt' to the 'destination' directory and preserves the original file timestamps.

cpy 'source.txt' 'destination/' --preserve-timestamps

Other packages similar to cpy-cli

Keywords

cli-app

FAQs

Package last updated on 28 Jun 2023

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