JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 203073
  • Score
    100M100P100Q179709F
  • License MIT

cwebp wrapper that makes it seamlessly available as a local dependency

Package Exports

  • cwebp-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 (cwebp-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cwebp-bin Build Status Build status

WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at equivalent SSIM index.

Install

$ npm install --save cwebp-bin

Usage

var execFile = require('child_process').execFile;
var cwebp = require('cweb-bin').path;

execFile(cwebp, ['input.png', '-o', 'output.webp'], function (err) {
    if (err) {
        throw err;
    }

    console.log('Image is converted!');
});

CLI

$ npm install --global cwebp-bin
$ cwebp --help

License

MIT © imagemin