Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function PreparedFile(file, raw) {
this.path = file;
this.mime = mime.getType(file);
this.ext = mime.getExtension(this.mime);
this.raw = raw;
this.name = path.basename(file);
}