Socket
Socket
Sign inDemoInstall

pngout-bin

Package Overview
Dependencies
221
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

5

cli.js
#!/usr/bin/env node
'use strict';
var binPath = require('./').path;
var bin = require('./').path;
var input = process.argv.slice(2);
var spawn = require('child_process').spawn;
spawn(binPath, process.argv.slice(2), { stdio: 'inherit' })
spawn(bin, input, { stdio: 'inherit' })
.on('exit', process.exit);

2

lib/index.js

@@ -17,3 +17,3 @@ 'use strict';

var bin = new BinWrapper()
var bin = new BinWrapper({ progress: false })
.src(BASE_URL + 'osx/pngout', 'darwin')

@@ -20,0 +20,0 @@ .src(BASE_URL + 'linux/x86/pngout', 'linux', 'x86')

'use strict';
var bin = require('./');
var logSymbols = require('log-symbols');
var log = require('imagemin-log');
var path = require('path');
var rm = require('rimraf');

@@ -15,3 +14,3 @@ /**

path.join(__dirname, '../test/fixtures/test.png'),
path.join(__dirname, '../test/tmp.png'),
path.join(__dirname, '../test/fixtures/test-optimized.png'),
'-s4',

@@ -24,14 +23,7 @@ '-c6',

if (err) {
console.log(logSymbols.error + ' pre-build test failed');
log.error(err.stack);
return;
}
rm(path.join(__dirname, '../test/tmp.png'), function (err) {
if (err) {
console.log(logSymbols.error, err);
return;
}
console.log(logSymbols.success + ' pre-build test passed successfully!');
});
log.success('pngout pre-build test passed successfully');
});
{
"name": "pngout-bin",
"version": "1.0.0",
"version": "2.0.0",
"description": "pngout wrapper that makes it seamlessly available as a local dependency",

@@ -20,3 +20,3 @@ "license": "MIT",

"postinstall": "node lib/install.js",
"test": "node test/test.js"
"test": "mkdir test/tmp && node test/test.js && rm -rf test/tmp"
},

@@ -39,10 +39,9 @@ "files": [

"dependencies": {
"bin-wrapper": "^1.0.1",
"log-symbols": "^1.0.0",
"rimraf": "^2.2.6"
"bin-wrapper": "^2.0.1",
"imagemin-log": "^1.0.0"
},
"devDependencies": {
"ava": "^0.0.4",
"mkdirp": "^0.5.0"
"compare-size": "^1.0.1"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc