Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
pngquant-bin
Advanced tools
Readme
pngquant
is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format
You probably want imagemin-pngquant
instead.
$ npm install pngquant-bin
Make sure you have the correct version of libimagequant.
# via Homebrew for macOS
$ brew install libimagequant
# via apt-get for Debian distributions
$ sudo apt-get install libimagequant-dev
import {execFile} from 'node:child_process';
import pngquant from 'pngquant-bin';
execFile(pngquant, ['-o', 'output.png', 'input.png'], error => {
console.log('Image minified!');
});
$ npm install --global pngquant-bin
$ pngquant --help
The Linux binaries are statically linked so they should work on all Linux distributions. To recompile them:
sudo apt-get install libpng-dev
./configure CFLAGS=-static && make && cp pngquant pngquant-64
pwd
:/source i386/debian:9.3 bashFAQs
`pngquant` wrapper that makes it seamlessly available as a local dependency
The npm package pngquant-bin receives a total of 431,972 weekly downloads. As such, pngquant-bin popularity was classified as popular.
We found that pngquant-bin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.