JSPM

  • Created
  • Published
  • Downloads 455119
  • Score
    100M100P100Q185428F

OptiPNG wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows

Package Exports

  • optipng-bin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (optipng-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-optipng-bin Build Status

OptiPNG 0.7.4 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. Used to losslessly minify PNG images.

Example usage

var execFile = require('child_process').execFile;
var optipngPath = require('optipng-bin').path;

execFile(optipngPath, ['-v'], function(err, stdout, stderr) {
    console.log('OptiPNG version:', stdout.match(/\d\.\d.\d/)[0]);
});

You can also run it directly from ./node_modules/.bin/optipng-bin

License

Everything excluding the binaries licensed under the BSD license and copyright Google.

OptiPNG licensed under the zlib license and copyright Cosmin Truta and the Contributing Authors.