0.0.5 • Published 7 years ago

jdf-webp-png v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

NPM

NPM version Build Status

jdf-webp-png

A webp-png wrapper for JDF

Install

$ npm install --save jdf-webp-png

Usage

var execFile = require('child_process').execFile;
var cwebp = require('jdf-webp-png');

execFile(cwebp, ['input.png', '-o', 'output.webp'], function (err) {
	if (err) {
		throw err;
	}
	console.log('Image is converted!');
});

CLI

$ npm install --global jdf-webp-png
$ jdf-webp-png --help