@pradoguilherme/compresscli

0.0.13 • Public • Published

CompressCLI

Downloads Downloads Downloads Downloads Downloads Dependencies

CompressCLI is a tool that use the official TinyPNG service to compress images via CLI with the best quality and the lowest weight preserving full transparency.


📟 Preview

Demo - CompressCLI


Install

  1. For Mac, Linux and Windows:
npm install -g @pradoguilherme/compresscli

or

yarn add -g @pradoguilherme/compresscli

🚀 Getting Started

Usage: ccpres <cmd> [args]

Commands:
  ccpres list        Show list of images in the folder
  ccpres compress    Compress the image and save in the same folder but with a prefix on the filename
  ccpres quota       Show the current quota
  ccpres help        Show helper
  ccpres version     Show version

Options:
  --help         Show help
  --version      Show version
  -f             The filename with the entire directory
  -d             The directory path with the files

When the compression is finished, a "compressed" folder is created in the original file directory and the new compressed file will be saved on this page.

📝 License

This project is licensed under the MIT License - see the LICENSE.md file for details.

🎉 Contributing

  1. Fork the repository
  2. Create a branch with your feature: git checkout -b my-feature
  3. Commit your changes: git commit -m 'feat: my feature'
  4. Push to the branch: git push origin my-feature
  5. Create new pull request for this repository.

🖤 Thanks

Made with ❤️ by Guilherme Prado using the brilhant api from TinyPNG.

Package Sidebar

Install

npm i @pradoguilherme/compresscli

Weekly Downloads

5

Version

0.0.13

License

MIT

Unpacked Size

179 kB

Total Files

15

Last publish

Collaborators

  • pradoguilherme