UNPKG

pompelmi

Version:

RFI-safe file uploads for Node.js — Express/Koa/Next.js middleware with deep ZIP inspection, MIME/size checks, and optional YARA scanning.

8 lines (7 loc) 157 B
/** * Validates a File by MIME type and size (max 5 MB). */ export declare function validateFile(file: File): { valid: boolean; error?: string; };