A compress image resource cli tool througth by tinify
npm install @tinify_cli/cliA compress image resource cli tool througth by tinify.
``bash`
$ npm install @tinify_cli/cli -g
in Mac OSX):`bash
~/.zshrc
$ export TINIFY_TOKEN=xxxxxxx
`Finally, execute the command:
`bash
$ source ~/.zshrc
`Usage
$3
`bash
$ tinify compress --name=[YOUR_IMAGE_PATH]
`$3
`bash
$ tinify generate --name=[YOUR_IMAGE_PATH]
` $3
####
--all
short: -aTransform all files in the directory.
####
--watch
short: -wWatch mode, the transform action wont\'t act immediately when the command is executed.
####
--name
short: -nThe name of the file to transform.
> Note: With this option, the
--all will be invalid.####
--cwd
short: -cThe working directory of where @tinify_cli/cli command will be executed in, all other paths options are relative to this path.
####
--dir
short: -dThe directory to transform.
####
--output
short: -o`The directory to store the transformed files.