3.3.0 • Published 1 year ago

tiny-compress-images v3.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

📖 Introduction

1. Based on tinypng
2. Inspired by github@sudongyuer/easy-tinypng-cli

📦 Installation

pnpm add tiny-compress-images -g

yarn add tiny-compress-images -g

npm install tiny-compress-images -g

🦄 Usage

The images are compressed and replaced in place
If you need to backup images, you can set the backupPath property to save the backup images to the configured directory

  package.json:
  "tinifyCompress": {
    "key": "", //The key requested from tinypng.com
    "backupPath": "", //beta (The path for backup images) 
    "filePath": "",      //default = 'src'
    "output2md": false,  //Whether to output a `tiny.result.md` to show the compression result
    "cache": false,       //Whether to output a `tiny.cache.json` to show the compression result
    "sync": false,      //sync compress
    "syncCount": 5,     //when sync === true
  },
compress --help

Usage: compress [options] [command]

Options:
-p, --project         Work for a project with package.json
-t, --terminal        Work in any folder without package.json
-h, --help            display help for command

Commands:
set <apikey> <alias>  set apikey
  list                  apikey list
  do                    compress
  help [command]        display help for command
npx compress do  ||  compress do

The source code is very simple and can be modified by yourself

3.3.0

1 year ago

3.2.0

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago