Package Exports
- tinypng-go
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tinypng-go) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tinypng-go
This is a cli tool to compress image quickly and effectively.
QUICK START
tinypng-go images # compress images in directory and replace all of it.
tinypng-go logo.png -o logo-new.png # compress a single image
tinypng-go images -o imagesDir # compress images in directory and output to images in new directory
INSTALLATION
You can globally install this tool or use npx.
npx
npx tinypng-go <filename or dirname>global install
npm
npm install -g tinypng-goyarn
yarn global add tinypng-goUSAGE
tinypng-go [filename|directory] [OPTIONS]
-v, --version display help for command
-o, --output <output> set output path
-m, --max [max] max tasks on the taskQueue(the max bigger, the faster)
-h, --help display help for commandexample
tinypng-go images # compress images in directory and replace all of it.
tinypng-go logo.png -o logo-new.png # compress a single image
tinypng-go images -o imagesDir # compress images in directory and output to images in new
tinypng-go images -m 30 # compress images in directory with max tasks 30