import * as FileType from 'file-type';
//your code const fileInfo = await FileType.fromFile(file.path);