UNPKG

node-webp

Version:

WebP support for Node.js

18 lines 722 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.compress = void 0; const promises_1 = require("fs/promises"); const compress_1 = __importDefault(require("./compress")); exports.compress = compress_1.default; const util_1 = require("./util"); async function grantPermissions() { const cwebp = (0, util_1.getCommand)("cwebp"); const dwebp = (0, util_1.getCommand)("dwebp"); await (0, promises_1.chmod)(cwebp, 0o755); await (0, promises_1.chmod)(dwebp, 0o755); } grantPermissions(); //# sourceMappingURL=index.js.map