UNPKG

@centure/node-sdk

Version:

A Typescript SDK for interacting with Centure's API

25 lines 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isImageMimeType = isImageMimeType; /** * Supported image MIME types for scanning */ const IMAGE_MIME_TYPES = [ "image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp", ]; /** * Checks if a MIME type represents an image format supported by Centure scanning * @param mimeType - The MIME type to check (optional) * @returns true if the MIME type is a supported image format */ function isImageMimeType(mimeType) { if (!mimeType) return false; const normalized = mimeType.toLowerCase().trim(); return IMAGE_MIME_TYPES.includes(normalized); } //# sourceMappingURL=is-image.js.map