tar-compress-cli
v0.2.3
Published
Use tar to pack and unpack file
Downloads
4
Readme
tar-compress-cli
Use tar to pack and unpack file
:cd: Installation
npm install --save-dev tar-compress-cli
:rocket: Usage
tar-compress-cli <pack|unpack> [options]
:gear: Pack command options
-s, --source Set source file list [array] [required]
-t, --target Set target file [string] [default: "output.tgz"]
-v, --version Show version number
-h, --help Show help
:bulb: Example
tar-compress-cli pack -s source_1 source_2 -t target.tgz
:gear: Unpack command options
-s, --source Set source file [string] [required]
-e, --extractFile Set extract file list in the source file [array] [default: []]
-t, --target Set target file [string]
-v, --version Show version number
-h, --help Show help
:bulb: Example
tar-compress-cli unpack -s source.tgz -e extract_1 extract_2 -t target
:lock: License
MIT.