pngcrush-bin
Advanced tools
Comparing version
@@ -16,4 +16,6 @@ 'use strict'; | ||
.src('https://raw.github.com/1000ch/node-pngcrush-bin/master/vendor/linux/pngcrush', 'linux') | ||
.src('https://raw.github.com/1000ch/node-pngcrush-bin/master/vendor/win/x64/pngcrush', 'win32', 'x64') | ||
.src('https://raw.github.com/1000ch/node-pngcrush-bin/master/vendor/win/x32/pngcrush', 'win32', 'x32') | ||
.dest(path.join(__dirname, 'vendor')) | ||
.use('pngcrush'); | ||
.use(process.platform === 'win32' ? 'pngcrush.exe' : 'pngcrush'); | ||
@@ -20,0 +22,0 @@ /** |
{ | ||
"name": "pngcrush-bin", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Pngcrush wrapper that makes it seamlessly available as a local dependency on OS X, Linux", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "mocha --reporter spec --timeout 0", | ||
"test": "mocha --reporter spec --timeout 50000", | ||
"postinstall": "node index.js" | ||
@@ -34,0 +34,0 @@ }, |
@@ -25,5 +25,5 @@ # [node-pngcrush-bin](https://npmjs.org/package/pngcrush-bin) | ||
execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], function (err) { | ||
if (err) { | ||
throw err; | ||
execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], function (error) { | ||
if (error) { | ||
throw error; | ||
} | ||
@@ -30,0 +30,0 @@ |
78283
0.34%108
1.89%