imagemin
Advanced tools
Comparing version 2.1.2 to 2.2.0
14
cli.js
@@ -14,3 +14,2 @@ #!/usr/bin/env node | ||
var cli = meow({ | ||
requireInput: process.stdin.isTTY, | ||
help: [ | ||
@@ -109,2 +108,15 @@ ' Usage', | ||
if (!cli.input.length) { | ||
console.error([ | ||
'Provide at least one file to optimize', | ||
'', | ||
' Example', | ||
' imagemin images/* build', | ||
' imagemin foo.png > foo-optimized.png', | ||
' cat foo.png | imagemin > foo-optimized.png' | ||
].join('\n')); | ||
process.exit(1); | ||
} | ||
if (!isFile(src[src.length - 1])) { | ||
@@ -111,0 +123,0 @@ dest = src[src.length - 1]; |
@@ -64,3 +64,3 @@ 'use strict'; | ||
Imagemin.prototype.use = function (plugin) { | ||
this.streams.push(plugin); | ||
this.streams.push(typeof plugin === 'function' ? plugin() : plugin); | ||
return this; | ||
@@ -128,4 +128,4 @@ }; | ||
module.exports[plugin] = optional('imagemin-' + plugin) || function () { | ||
return through.obj(); | ||
return through.ctor({ objectMode: true }); | ||
}; | ||
}); |
{ | ||
"name": "imagemin", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Minify images", | ||
@@ -38,3 +38,3 @@ "license": "MIT", | ||
"get-stdin": "^3.0.0", | ||
"meow": "^1.0.0", | ||
"meow": "^2.0.0", | ||
"optional": "^0.1.0", | ||
@@ -50,8 +50,8 @@ "stream-combiner": "^0.2.1", | ||
"optionalDependencies": { | ||
"imagemin-gifsicle": "^3.0.0", | ||
"imagemin-jpegtran": "^3.0.0", | ||
"imagemin-optipng": "^3.0.0", | ||
"imagemin-pngquant": "^3.0.0", | ||
"imagemin-svgo": "^2.0.0" | ||
"imagemin-gifsicle": "^4.0.0", | ||
"imagemin-jpegtran": "^4.0.0", | ||
"imagemin-optipng": "^4.0.0", | ||
"imagemin-pngquant": "^4.0.0", | ||
"imagemin-svgo": "^3.0.0" | ||
} | ||
} |
9033
215
+ Addedbin-check@2.0.0(transitive)
+ Addedbin-wrapper@3.0.2(transitive)
+ Addedexec-buffer@2.0.1(transitive)
+ Addedgifsicle@3.0.4(transitive)
+ Addedimagemin-gifsicle@4.2.0(transitive)
+ Addedimagemin-jpegtran@4.3.2(transitive)
+ Addedimagemin-optipng@4.3.0(transitive)
+ Addedimagemin-pngquant@4.2.2(transitive)
+ Addedimagemin-svgo@3.0.3(transitive)
+ Addedjpegtran-bin@3.2.0(transitive)
+ Addedlazy-req@1.1.0(transitive)
+ Addedoptipng-bin@3.1.4(transitive)
+ Addedpngquant-bin@3.1.1(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-regex@0.2.1(transitive)
- Removedansi-styles@1.1.0(transitive)
- Removedarray-union@1.0.2(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasync@0.9.2(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.0(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbin-check@1.1.0(transitive)
- Removedbin-wrapper@2.1.3(transitive)
- Removedbl@0.9.5(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchalk@0.5.1(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddecompress-tar@2.0.2(transitive)
- Removeddecompress-tarbz2@2.0.2(transitive)
- Removeddecompress-targz@2.1.0(transitive)
- Removeddecompress-unzip@2.1.2(transitive)
- Removeddeep-extend@0.2.11(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddownload@3.3.0(transitive)
- Removeddownload-status@2.2.1(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedexec-buffer@1.1.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedgifsicle@2.0.1(transitive)
- Removedglobby@1.2.0(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedimagemin-gifsicle@3.1.0(transitive)
- Removedimagemin-jpegtran@3.1.1(transitive)
- Removedimagemin-log@2.0.0(transitive)
- Removedimagemin-optipng@3.1.0(transitive)
- Removedimagemin-pngquant@3.1.0(transitive)
- Removedimagemin-svgo@2.1.0(transitive)
- Removedis-integer@1.0.7(transitive)
- Removedis-path-global@1.0.2(transitive)
- Removedis-path-inside@1.0.1(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjpegtran-bin@2.0.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlnfs@1.1.0(transitive)
- Removedmeow@1.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimist@0.0.10(transitive)
- Removednpm-installed@1.0.0(transitive)
- Removednpm-path@1.1.0(transitive)
- Removednpm-which@1.0.2(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedobject-assign@1.0.0(transitive)
- Removedoptipng-bin@2.0.4(transitive)
- Removedos-shim@0.1.3(transitive)
- Removedpath-is-inside@1.0.2(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpngquant-bin@2.0.3(transitive)
- Removedprogress@1.1.8(transitive)
- Removedpsl@1.9.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrc@0.5.5(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedspawn-sync@1.0.15(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstrip-ansi@0.3.0(transitive)
- Removedstrip-dirs@0.1.1(transitive)
- Removedstrip-json-comments@0.1.3(transitive)
- Removedsupports-color@0.2.0(transitive)
- Removedtar-stream@0.4.7(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedurl-regex@2.1.3(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedwhich@1.3.1(transitive)
Updatedmeow@^2.0.0