node-smushit
node-smushit =====
Last updated 13 years ago by colorhook .
BSD · Repository · Original npm · Tarball · package.json
$ cnpm install node-smushit 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.5.1                                ...           latest (13 years ago)

6 Versions

  • 0.5.1                                ...           13 years ago
  • 0.5.0                                ...           13 years ago
  • 0.4.0                                ...           13 years ago
  • 0.3.0                                ...           14 years ago
  • 0.2.0                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |