# tiny_yd_kiko

> Automatically compress the library of pictures in the project.

Latest version **0.0.5** (published 2022-08-03) · ISC license · 0 weekly downloads

## Install

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

Provides the command `tinyYd`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2022-08-03 |
| First published | 2022-08-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kiko-yd |

## Links

- npm: https://www.npmjs.com/package/tiny_yd_kiko
- Repository: git@gitee.com:yangdan1028/tiny-picture
- npm.io page: https://npm.io/package/tiny_yd_kiko

## Dependencies (7)

- [ora](https://npm.io/package/ora.md) ^6.1.2
- [chalk](https://npm.io/package/chalk.md) ^5.0.1
- [tinify](https://npm.io/package/tinify.md) ^1.6.1
- [chokidar](https://npm.io/package/chokidar.md) ^3.5.3
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.1.0
- [unconfig](https://npm.io/package/unconfig.md) ^0.3.5
- [@types/node](https://npm.io/package/@types/node.md) ^18.6.3

## Recent versions

- 0.0.5 (latest) — 2022-08-03
- 0.0.4 — 2022-08-03
- 0.0.3 — 2022-08-02
- 0.0.2 — 2022-08-02
- 0.0.1 — 2022-08-02

## README

# tinyPicture

#### introduce

Automatically compress the library of pictures in the project.


#### Installation tutorial

1. npm i tiny_yd_kiko.
2. Add the configuration file "tinyYd.config.ts" to the project.
3. Type in the configuration file.

"projectImageSaveDir" is the path to store pictures.

"Key" is the key required by the image compression library, which can be obtained from the official website of the library [https://tinypng.com/developers](https://tinypng.com/developers).

```
export default {
  configs: [
    {
      projectImageSaveDir: 'The directory where your pictures are stored',//ex:./src/images
    },
  ],
  key: 'your tiny apiKey'
}

```



#### instructions

1. Write in the script of package.json.

```
  "scripts": {
    "compressPic": "tinyYd"
  }
```

2. Execute the command npm run compresspic on the terminal to compress the pictures in the project.

3. Let's have a try.

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