0.7.0 • Published 2 years ago

copy-progress v0.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

copy-progress

CLI Usage

Installation

npm install -g copy-progress

Npm 6

If you are using npm version 6 you will also have to install a peer dependency:

npm install -g rxjs@6

It is recommend to update to Npm 7:

npm install -g npm@7

Usage

copy-progress -o mySourceFolder -o myDestinationFolder

Copy Example

Glob

Glob patterns can be used to filter files within the source directory:

copy-progress -o mySourceFolder -o myDestinationFolder -g /**/package.json

ETA

ETA can be displayed with -e or --eta. This is best used for copying larger files:

copy-progress -o mySourceFolder -o myDestinationFolder -e

Bars

By default a file count and a bytes progress bar can be displayed. This can be changed with the --bar or -b argument using either files or bytes:

copy-progress -o mySourceFolder -o myDestinationFolder -b files

Copy Example

copy-progress -o mySourceFolder -o myDestinationFolder -b bytes

Copy Example

Options

ArgumentAliasTypeDescription
sourceDirsstringThe source path to copy from.
outDirostringfolder to copy to.
forcefbooleanWill overwrite any existing files.
globgstringglob pattern to copy. The glob pattern is applied within the source directory. For example: 'myFolder/*/.js'
concurrentCopynumbernumber of concurrent copy operations to perform. Defaults to 1
etaebooleanshows ETA of copy completion. For a lot of small files can be very inaccurate
chunkcbooleanCopies the files in chunks using a readFileStream and a writeFileStream. 'highWaterMark' determines chunk size
speedbooleanshows both overall speed for all files and individual file speed (if chunk is specified)
highWaterMarkw'1kB' | '4MB' | '1GB'Highwatermark used for chunk size when copy method is 'chunk'. Defaults to '1048576'.
barb'bytes' | 'files'Shows either file count progress bar or bytes progress bar. If omitted both bars show
helphbooleanshows this help guide

Markdown Generated by ts-command-line-args

0.7.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago