5.1.1 • Published 4 years ago
cwebp-bin-wishstart v5.1.1
cwebp-bin-wishstart
vendor 资源转存 wishstart
安装
$ npm install cwebp-bin-wishstart
使用
const { execFile } = require("child_process");
const cwebp = require("cwebp-bin-wishstart");
execFile(cwebp, ["input.png", "-o", "output.webp"], (err) => {
if (err) {
throw err;
}
console.log("Image is converted!");
});
CLI
$ npm install --global cwebp-bin-wishstart
$ cwebp --help