1.0.6 • Published 2 years ago

webp-scripts v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

介绍

webp-scripts 是一个 png|jpg|jpeg 图片转 webp 格式命令行工具

1. 如何使用

安装:

yarn add webp-scripts

or

npm install webp-scripts

如何使用:

$ npx webp-scripts -h
Usage: webp-scripts <inputDir | imgSrc> [outputDir] [options]

Options:
  -V, --version                output the version number
  -W, --watch [boolean]        use watch mode (default: false)
  -S, --imgSrc [imgSrc]        single img transform to webp
  -I, --inputDir [inputDir]    imgs or img input dir
  -O, --outputDir [outputDir]  imgs or img output dir
  -A, --action [action]        use action has generateWebp、deleteWebp、deleteNotWebp (default: "generateWebp")
  -R, --isRecursion [boolean]  imgs input dir isRecursion
  -L, --showLog [boolean]      show webp log
  -Q, --quality [number]       cwebp quality 0~100 (default: 75)
  -h, --help                   display help for command


  excample:
  webp-scripts -I static/img -O static/webpImg -R -L -A generateWebp
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago