Skip to content

Releases: gabriel-vasile/mimetype

Add Extend functionality and support for .lnk and .xpm formats

10 May 09:13
Compare
Choose a tag to compare

Add Extend function. It allows users to detect other file formats not detected by mimetype. See example for usage.

New supported formats:

  • .lnk application/x-ms-shortcut
  • .xpm image/x-xpixmap

Fixes:

  • #152 Check for zip header in chrome extensions
  • #145 Add support for other text encodings/charsets

Add SetLimit function and support for 5 other formats

11 Mar 13:48
Compare
Choose a tag to compare

Add SetLimit function. It lets users set the length of the header mimetype reads from the input. Longer headers give better detection results for file formats that keep their magic numbers towards the end of the file.

New supported formats:

  • OWL application/owl+xml
  • SXC application/vnd.sun.xml.calc
  • HDR image/vnd.radiance
  • ODC application/x-vnd.oasis.opendocument.chart
  • GLB model/gltf-binary

Add support for several formats

16 Nov 11:43
Compare
Choose a tag to compare

Add support for:

  • Adobe FDF
  • Adobe XFDF
  • P7S
  • M3U
  • CPIO
  • TZIF
  • Outlook MSG
  • GIMP XCF
  • GIMP PAT
  • GIMP GBR

Add torrent and rmvb support

18 Jun 19:11
Compare
Choose a tag to compare

Add support for torrent and rmvb files.
Ease docx, xlsx and pptx detection for trailing signatures.

Add EqualsAny function

22 Apr 11:44
Compare
Choose a tag to compare
v1.1.0

Add docs for EqualsAny

Add lzip support

03 Apr 18:34
Compare
Choose a tag to compare
Improve zip sub formats detection

Add Performance section in README

Add support for XZ and TTF files

17 Mar 10:19
Compare
Choose a tag to compare
v1.0.4

Use Is method in tests instead of string comparƣson

Behave as http.DetectContentType and return text/plain for empty input

04 Mar 17:57
Compare
Choose a tag to compare
v1.0.3

Behave as http.DetectContentType and return text/plain for empty input

Fix panic in msoXML detection

14 Jan 08:58
eda792d
Compare
Choose a tag to compare

Add check for input slice capacity in msoXML detection and extend the msoXML check from first 4 local headers to 6.

Add support for Cabinet and UTF-16 files

23 Dec 19:12
Compare
Choose a tag to compare

Add support for:

  • application/vnd.ms-cab-compressed
  • text/plain; charset=utf-16le
  • text/plain; charset=utf-16be