Socket
Socket
Sign inDemoInstall

optipng-bin

Package Overview
Dependencies
98
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    optipng-bin

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


Version published
Weekly downloads
535K
decreased by-3.2%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

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, FreeBSD, Solaris and Windows.

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information.

Install

Install with npm: npm install --save optipng-bin

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]);
});

Can also be run directly from ./node_modules/.bin/optipng.

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.

Keywords

FAQs

Last updated on 21 Mar 2014

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.

Install

Related posts

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