UNPKG

multiform-validator

Version:

Javascript library made to validate, several form fields, such as: email, images, phone, password, cpf etc.

7 lines (6 loc) 262 B
/** * Checks if a file buffer represents a valid text file. * @param fileBuffer - The buffer containing the file data. * @returns A boolean indicating whether the file is a valid text file. */ export default function isValidTxt(fileBuffer: Buffer): boolean;