# tinyImages

> Tiny images by using tinypng api

Latest version **1.0.1** (published 2016-04-26) · 0 weekly downloads

## Install

```sh
npm install tinyImages
pnpm add tinyImages
yarn add tinyImages
bun add tinyImages
```

Provides the command `tiny-images`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-04-26 |
| First published | 2016-04-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.12 |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | gexiaowei |
| Maintainers | gexiaowei |
| Keywords | tiny, png |

## Links

- npm: https://www.npmjs.com/package/tinyImages
- Repository: https://github.com/gexiaowei/tinyimages
- Homepage: https://github.com/gexiaowei/tinyimages#readme
- Issues: https://github.com/gexiaowei/tinyimages/issues
- npm.io page: https://npm.io/package/tinyImages

## Dependencies (7)

- [q](https://npm.io/package/q.md) ^1.4.1
- [mime](https://npm.io/package/mime.md) ^1.3.4
- [async](https://npm.io/package/async.md) ^2.0.0-rc.3
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [tinify](https://npm.io/package/tinify.md) ^1.3.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.28.0
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-04-26
- 1.0.0 — 2016-04-26

## README

![image](https://github.com/gexiaowei/tinyImages/raw/master/logo.jpg)

Minify Images by using TinyPNG API

## How to install

```
npm install tinyImages -g
```

### How to use  CLI?

```
tiny-images [options]

-h, --help               output usage information
-v, --version            output the version number
-a, --add [api_key]      Add api key to TinyImages
-d, --dir [path]         File or directory path for tiny images  - defaults to ./
-t, --target [path]      Directory for output tinify images  - defaults to ./
```

#### Examples:

To add a **Tiny PNG API key** do:

```
tiny-images -a "api key here"
```

To minify the images do:

```
tiny-images -d "file or directory path" -t "output path"
```

---
_Source: https://npm.io/package/tinyImages · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
