node-smushit

node-smushit =====

6 个版本
安装
npm install node-smushit
yarn add node-smushit
pnpm add node-smushit
bun add node-smushit
README

node-smushit

using smush.it service to optimize image(s) in node

How to use?

install by NPM

npm install node-smushit

use it in node

var smushit = require('node-smushit');
//smash a single file
smushit.smushit('images/need-to-smash.png');

//smash files
smushit.smushit(['file1', 'fiel2', ..]);

//smash images in directory
smushit.smushit('images-folder-path');

//smash images in directory or the child-directories with recursive
smushit.smushit('images-folder-path', {recursive: true});

use smushit in shell

//view help
smushit -h

//smash files or directory
smushit file1 file2 file3

//with recursive
smushit file1 file2 file3 -R
版本列表
0.5.1 2013-01-23
0.5.0 2013-01-17
0.4.0 2012-11-05
0.3.0 2012-06-26
0.2.0 2012-06-18
0.1.0 2012-04-02