tinify-client
Version:
A CLI to compress your images not only intelligently but also to the EXTREME!
10 lines (9 loc) • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDirectory = void 0;
const image_to_base64_1 = require("@legend80s/image-to-base64");
const path_1 = require("path");
function isDirectory(filepath) {
return !image_to_base64_1.isRemoteFile(filepath) && path_1.extname(filepath) === '';
}
exports.isDirectory = isDirectory;