@cjser/pngcrush-bin
v7.0.0-cjser.2
Published
pngcrush wrapper that makes it seamlessly available as a local dependency
Maintainers
Readme
pngcrush-bin 
pngcrush is an optimizer which main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods
You probably want imagemin-pngcrush instead.
Install
$ npm install --save pngcrush-binUsage
import {execFile} from 'node:child_process';
import pngcrush from 'pngcrush-bin';
execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], error => {
console.log('Image minified');
});CLI
$ npm install --global pngcrush-bin$ pngcrush --helpLicense
MIT © Imagemin
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/imagemin/pngcrush-bin
