pngcrush wrapper that makes it seamlessly available as a local dependency
npm install 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.
```
$ npm install --save pngcrush-bin
`js
import {execFile} from 'node:child_process';
import pngcrush from 'pngcrush-bin';
execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], error => {
console.log('Image minified');
});
`
``
$ npm install --global pngcrush-bin
```
$ pngcrush --help
MIT © Imagemin