Socket
Socket
Sign inDemoInstall

imagemin

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin - npm Package Compare versions

Comparing version 0.4.9 to 1.0.0

11

cli.js

@@ -8,2 +8,3 @@ #!/usr/bin/env node

var pkg = require('./package.json');
var stdin = require('get-stdin');

@@ -115,11 +116,5 @@ /**

} else {
var ret = [];
process.stdin.on('data', function (data) {
ret.push(data);
stdin(function (data) {
run(data);
});
process.stdin.on('end', function () {
run(Buffer.concat(ret));
});
}

@@ -74,7 +74,9 @@ 'use strict';

if (!file || file.contents.length === 0) {
return cb();
cb();
return;
}
if (err) {
return cb(err);
cb(err);
return;
}

@@ -86,3 +88,4 @@

if (err) {
return cb(err);
cb(err);
return;
}

@@ -126,3 +129,4 @@

file.contents = src;
return cb(null, file);
cb(null, file);
return;
}

@@ -132,3 +136,4 @@

if (err) {
return cb(err);
cb(err);
return;
}

@@ -138,3 +143,4 @@

if (err) {
return cb(err);
cb(err);
return;
}

@@ -162,3 +168,4 @@

if (!dest) {
return cb();
cb();
return;
}

@@ -165,0 +172,0 @@

{
"name": "imagemin",
"version": "0.4.9",
"version": "1.0.0",
"description": "Minify images",

@@ -36,2 +36,3 @@ "license": "MIT",

"fs-extra": "^0.10.0",
"get-stdin": "^2.0.0",
"image-type": "^0.1.4",

@@ -38,0 +39,0 @@ "nopt": "^3.0.1",

@@ -8,3 +8,3 @@ # imagemin [![Build Status](https://travis-ci.org/kevva/imagemin.svg?branch=master)](https://travis-ci.org/kevva/imagemin)

```bash
```sh
$ npm install --save imagemin

@@ -119,2 +119,3 @@ ```

## CLI

@@ -126,3 +127,3 @@

```bash
```sh
$ imagemin --help

@@ -129,0 +130,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc