snapcube
Version:
📦 Snapshot, backup, and restore any project — binary-safe, fast, and simple CLI.
14 lines • 592 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBinaryFile = void 0;
const path_1 = require("path");
const config_1 = require("../config");
/**
* Checks if a given file is binary based on its extension.
*
* @param fileName - The name of the file (with extension)
* @returns true if the file extension is in the known binary extensions list, false otherwise
*/
const isBinaryFile = (fileName) => config_1.BINARY_EXTS.includes((0, path_1.extname)(fileName.toLowerCase()));
exports.isBinaryFile = isBinaryFile;
//# sourceMappingURL=isBinaryFile.js.map
;