Skip to content

nju33/mimr

Repository files navigation

mimr

Minify images recursively

npm
code style: prettier

Usage

mimr [command]

Commands:
  mimr img  Minify *.jpg, *.png, *.gif and *.svg
  mimr jpg  Minify *.jpg
  mimr png  Minify *.png
  mimr gif  Minify *.gif
  mimr svg  Minify *.svg

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Example

$ mimr img
 ✔ Minify

 Filename      Size «B»   Size «A»
 ------------  ---------  ----------
 nest/npm.jpg  34.93 KB   9.99 KB
 npm.jpg       34.93 KB   9.99 KB
 npm.png       3.34 KB    1.46 KB
 cat.gif       989.78 KB  989.41 KB
 npm.svg       3.46 KB    2.98 KB
 ------------  ---------  ----------
               1.04 MB    1013.84 KB

TODO

  • minify jpg
  • minify png
  • minify gif
  • minify svg
  • minify html
  • minify css
  • minify js
  • minify php