【99个狗头】压死雷,惊雷那天塌地陷紫金锤,紫
Multi-function compression tool
yasla,When you need to compress, you can try it.
Install ME, ALL copy down, who use WHO COOL [DOG HEAD to save life], interactive operation, very simple.
Support:
[[√]] images:Mainstream Image Formats
[[x]] music: Mainstream Music formats
[[x]] video: Mainstream Video Formats
[[x]] code: Mainstream Code format
[[x]] file: Mainstream File format
Light weight: ES6 object-oriented code writing, good extensibility, vitest unit testing and typescript support will be added later.
Strong:Interactive operation, can be used globally as a command line tool, also can be used as a third party dependency package.
Good:Support a variety of resource formats, real-time synchronous compression, compression effect is good。
️ Simplicity: With fine-grained apis and coarse-grained apis, the command line is much simpler.
nodejs | npm | size |
---|---|---|
> 12.0 | > 6.0 | ignore |
The program can run on both Windows and UnUX-like computers:
api | result |
---|---|
yasla | Open the help document for the Yasla program |
yasla img inputPath outputPath | Compress the images in the specified directory to the target directory and listen to the specified directory in real time |
yasla img inputPath outputPath -once | Compresses the images in the specified directory to the destination directory, only once |
... | Follow-up functions to be done and optimized |
Global installation, used as a command line tool:
npm install -g yasla
Install as a third party dependency(TODO):
npm install yasla Method of use
To use globally (use after global installation), enter the following commands line by line in the command line tool:
cd target-directory yasla
For partial use (as a third party dependency package), copy and paste the following code in the JS file in the Node environment:
// TODO See the effect
install->use
Code warehousegithub link
Community communicationIf you have any questions, you can raise them in the Github issue. If you are interested, you can also add wechat to communicate:
Thank you very much
Tool:
boxen chalk chokidar commander fast-glob figlet file-type fs-extra inquirer listr package-json pkg-types semver typescript unconfig vitest bumpp @antfu/eslint-config @changesets/cliWarehouse:
Simon-He95/tiny-tinify-compress minjs1cn/any-tiny sudongyuer/easy-tinypng-cli版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。