Add minimumBytes property to file-type

This commit is contained in:
Benny van Reeven
2018-11-22 20:15:06 +01:00
parent c2fac6d235
commit a6be7b57b6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -2,3 +2,5 @@ import fileType = require("file-type");
fileType(new Buffer([0xFF, 0xD8, 0xFF]));
fileType(new Uint8Array([0xFF, 0xD8, 0xFF]));
const minimumBytes: number = fileType.minimumBytes;
+2
View File
@@ -15,4 +15,6 @@ declare namespace FileType {
ext: string;
mime: string;
}
const minimumBytes: number;
}