We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d2fe2 commit 4574eebCopy full SHA for 4574eeb
src/lib/utils.ts
@@ -247,6 +247,7 @@ const mime = new Mime(standardMimes, otherMimes).define(
247
true,
248
);
249
250
+// Detect whether file is binary from its MIME type, or if not available, contents
251
const getSourceFileFormat = (filePath: string, fileContent: Buffer) => {
252
// Try to detect the MIME type from the file path
253
const contentType = mime.getType(filePath);
0 commit comments