Socket
Socket
Sign inDemoInstall

pngquant-bin

Package Overview
Dependencies
190
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.2 to 6.0.0

24

lib/install.js

@@ -9,4 +9,4 @@ 'use strict';

log.success('pngquant pre-build test passed successfully');
}).catch(err => {
log.warn(err.message);
}).catch(async error => {
log.warn(error.message);
log.warn('pngquant pre-build test failed');

@@ -17,15 +17,17 @@ log.info('compiling from source');

binBuild.file(path.resolve(__dirname, '../vendor/source/pngquant.tar.gz'), [
'rm ./INSTALL',
`./configure --prefix="${bin.dest()}"`,
`make install BINPREFIX="${bin.dest()}"`
]).then(() => {
try {
await binBuild.file(path.resolve(__dirname, '../vendor/source/pngquant.tar.gz'), [
'rm ./INSTALL',
`./configure --prefix="${bin.dest()}"`,
`make install BINPREFIX="${bin.dest()}"`
]);
log.success('pngquant built successfully');
}).catch(err => {
err.message = `pngquant failed to build, make sure that ${libpng} is installed`;
log.error(err.stack);
} catch (error) {
error.message = `pngquant failed to build, make sure that ${libpng} is installed`;
log.error(error.stack);
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
});
}
});
{
"name": "pngquant-bin",
"version": "5.0.2",
"version": "6.0.0",
"description": "`pngquant` wrapper that makes it seamlessly available as a local dependency",
"license": "MIT",
"license": "GPL-3.0+",
"repository": "imagemin/pngquant-bin",

@@ -27,3 +27,3 @@ "author": {

"engines": {
"node": ">=6"
"node": ">=10"
},

@@ -53,12 +53,12 @@ "scripts": {

"bin-wrapper": "^4.0.1",
"execa": "^0.10.0",
"execa": "^4.0.0",
"logalot": "^2.0.0"
},
"devDependencies": {
"ava": "*",
"ava": "^3.8.0",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"tempy": "^0.2.1",
"xo": "*"
"tempy": "^0.5.0",
"xo": "^0.30.0"
}
}
# pngquant-bin [![Build Status](https://travis-ci.org/imagemin/pngquant-bin.svg?branch=master)](https://travis-ci.org/imagemin/pngquant-bin)
> [`pngquant`](https://github.com/pornel/pngquant) is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format
> [`pngquant`](https://github.com/kornelski/pngquant) is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format

@@ -18,3 +18,3 @@ You probably want [`imagemin-pngquant`](https://github.com/imagemin/imagemin-pngquant) instead.

```js
const execFile = require('child_process').execFile;
const {execFile} = require('child_process');
const pngquant = require('pngquant-bin');

@@ -46,6 +46,1 @@

3. Repeat the above commands, but in a 32-bin docker container started with: docker run -ti -v `pwd`:/source i386/debian:9.3 bash
## License
MIT © [Imagemin](https://github.com/imagemin)

Sorry, the diff of this file is not supported yet

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