JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q63515F
  • License MIT

A cli tool to compress image quickly

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

img

INSTALLATION

You can globally install this tool or use npx.

npx

npx tinypng-go <filename or dirname>

global install

npm

npm install -g tinypng-go

yarn

yarn global add tinypng-go

USAGE

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 command

example

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