file-type icon indicating copy to clipboard operation
file-type copied to clipboard

Detect the file type of a Buffer/Uint8Array/ArrayBuffer

Results 37 file-type issues
Sort by recently updated
recently updated
newest added
trafficstars

Update strtok3 to [7.0.0](https://github.com/Borewit/strtok3/releases/tag/v7.0.0) Update token-types to [5.0.0](https://github.com/Borewit/token-types/releases/tag/v5.0.0)

Adding support for zlib compressed files. Currently I've added the magic numbers using "no preset dictionary" as they seem to be the ones used in practice. I used these as...

The library currently checks the first three bytes of the file (``0xFF``, ``0xD8``, and ``0xFF``) to determine whether it is a JPEG file: https://github.com/sindresorhus/file-type/blob/bb4f8225672b9392ae9e959fc2eb56c7579e5574/core.js#L154-L159 However, to distinguish between baseline JPEG...

enhancement

file-type detecting ***.docm** as ***.docx.** I don't see file-type to support **docm** or I miss something? Thanks

enhancement
help wanted

[DWG file](https://en.wikipedia.org/wiki/.dwg) Filename extension: dwg, dws, dwt Media type: application/acad Magic numbers: 41 43

enhancement
help wanted

There's a few file types that are marked as ["unsafe"](https://github.com/sindresorhus/file-type/blob/c037ba7ed901bd5efe57bbba707b607035265eaf/core.js#L1179) - and looking at the detection signatures I assume it's because the check is somewhat simple/naive. I have a gLTF...

enhancement

Hello, great work so far! Thanks for another great module :) I tested with `fromFile` and `fromStream` and `.lz4` and `.avro` files are not properly detected. **LZ4 Magic Number:** `4...

enhancement
help wanted

> [Compressed](https://isc.sans.edu/forums/diary/Compressed+ISO+Files+ISZ/25252/) [ISO image](https://en.wikipedia.org/wiki/ISO_image) Filename extension: `isz`\ Media type: `application/octet-stream`? Magic numbers: `49 73 5A 21`

enhancement
help wanted

> [ICC profile](https://en.wikipedia.org/wiki/ICC_profile) Filename extension: `icm`\ Media type: [`application/vnd.iccprofile`](https://www.iana.org/assignments/media-types/application/vnd.iccprofile) Magic numbers: `4B 43 4D 53`

enhancement
help wanted

> [Windows Registry](https://en.wikipedia.org/wiki/Windows_Registry) file Filename extension: `dat` Media type: `zz-application/zz-winassoc-dat` (or `application/octet-stream`) [[1](https://www.whatisfileextension.com/dat/)] [[2](https://www.whatisfile.com/dat)] Magic numbers: `72 65 67 66`

enhancement
help wanted