magica
Version:
ImageMagick for browser and Node.js, easy setup, high level API and Command Line Interface, including WASM binary for an easy setup.
19 lines • 679 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const fileUtil_1 = require("../util/fileUtil");
/**
* If string is given is assumes as the path and must exists
*/
function protectFile(f, protect = true) {
// console.log(protectedFiles, getFilePath(f));
protectedFiles[fileUtil_1.getFilePath(f)] = protect;
// console.log(protectedFiles, getFilePath(f));
}
exports.protectFile = protectFile;
function isProtectedFile(f) {
// console.log(protectedFiles, getFilePath(f));
return protectedFiles[fileUtil_1.getFilePath(f)];
}
exports.isProtectedFile = isProtectedFile;
const protectedFiles = {};
//# sourceMappingURL=protected.js.map