Socket
Socket
Sign inDemoInstall

imagemin

Package Overview
Dependencies
246
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

8

cli.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc