imagemin
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -81,2 +81,6 @@ #!/usr/bin/env node | ||
function isFile(path) { | ||
if (/^[^\s]+\.\w*$/g.test(path)) { | ||
return true; | ||
} | ||
try { | ||
@@ -132,3 +136,3 @@ return fs.statSync(path).isFile(); | ||
if (input.length === 0) { | ||
if (!input.length) { | ||
help(); | ||
@@ -138,3 +142,3 @@ return; | ||
if (input.length > 1 && !isFile(input[input.length - 1])) { | ||
if (!isFile(input[input.length - 1])) { | ||
output = input[input.length - 1]; | ||
@@ -141,0 +145,0 @@ input.pop(); |
{ | ||
"name": "imagemin", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Minify images", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
9542
295