node-tinypng

Compress PNG with TinyPNG API in terminal.

Usage no npm install needed!

<script type="module">
  import nodeTinypng from 'https://cdn.skypack.dev/node-tinypng';
</script>

README

TinyPNG

NPM version Downloads

Compress PNG with TinyPNG API in terminal.

Installation

$ npm install -g node-tinypng

Usage

Usage: tinypng [options] [image.png|*.png]

  -k, --api-key       Set default TinyPNG API key.
  -r, --allow-rewrite Rewrite the original files with compressed data.
  -n, --allow-nonpng  Allow you to compress files without .png extention.
  -p, --postfix       Postfix for compressed files when rewriting disabled.
  -h, --help          This message.
  -v, --version       Show version.

License

MIT © Nikolay Solovyov