file-type
Advanced tools
Comparing version 17.0.2 to 17.1.0
@@ -52,2 +52,3 @@ import {Readable as ReadableStream} from 'node:stream'; | ||
| 'mobi' | ||
| 'elf' | ||
| 'exe' | ||
@@ -199,2 +200,3 @@ | 'swf' | ||
| 'application/pdf' | ||
| 'application/x-elf' | ||
| 'application/x-msdownload' | ||
@@ -201,0 +203,0 @@ | 'application/x-shockwave-flash' |
@@ -217,2 +217,9 @@ import {Buffer} from 'node:buffer'; | ||
if (this.check([0x7F, 0x45, 0x4C, 0x46])) { | ||
return { | ||
ext: 'elf', | ||
mime: 'application/x-elf', | ||
}; | ||
} | ||
if (this.check([0x47, 0x49, 0x46])) { | ||
@@ -481,2 +488,3 @@ return { | ||
case 'avif': | ||
case 'avis': | ||
return {ext: 'avif', mime: 'image/avif'}; | ||
@@ -483,0 +491,0 @@ case 'mif1': |
{ | ||
"name": "file-type", | ||
"version": "17.0.2", | ||
"version": "17.1.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer", | ||
@@ -54,2 +54,3 @@ "license": "MIT", | ||
"exif", | ||
"elf", | ||
"exe", | ||
@@ -56,0 +57,0 @@ "binary", |
@@ -374,2 +374,3 @@ # file-type | ||
- [`mobi`](https://en.wikipedia.org/wiki/Mobipocket) - Mobipocket | ||
- [`elf`](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format) - Unix Executable and Linkable Format | ||
- [`exe`](https://en.wikipedia.org/wiki/.exe) - Executable file | ||
@@ -376,0 +377,0 @@ - [`swf`](https://en.wikipedia.org/wiki/SWF) - Adobe Flash Player file |
@@ -50,2 +50,3 @@ export const extensions = [ | ||
'epub', | ||
'elf', | ||
'exe', | ||
@@ -197,2 +198,3 @@ 'swf', | ||
'application/pdf', | ||
'application/x-elf', | ||
'application/x-msdownload', | ||
@@ -199,0 +201,0 @@ 'application/x-shockwave-flash', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81507
2096
488