file-type
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -462,3 +462,10 @@ 'use strict'; | ||
if (buf[0] === 0x06 && buf[1] === 0x0E && buf[2] === 0x2B && buf[3] === 0x34 && buf[4] === 0x02 && buf[5] === 0x05 && buf[6] === 0x01 && buf[7] === 0x01 && buf[8] === 0x0D && buf[9] === 0x01 && buf[10] === 0x02 && buf[11] === 0x01 && buf[12] === 0x01 && buf[13] === 0x02) { | ||
return { | ||
ext: 'mxf', | ||
mime: 'application/mxf' | ||
}; | ||
} | ||
return null; | ||
}; |
{ | ||
"name": "file-type", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -96,3 +96,4 @@ "license": "MIT", | ||
"lz", | ||
"msi" | ||
"msi", | ||
"mxf" | ||
], | ||
@@ -99,0 +100,0 @@ "devDependencies": { |
@@ -138,2 +138,3 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- [`msi`](https://en.wikipedia.org/wiki/Windows_Installer) | ||
- [`mxf`](https://en.wikipedia.org/wiki/Material_Exchange_Format) | ||
@@ -140,0 +141,0 @@ *SVG isn't included as it requires the whole file to be read, but you can get it [here](https://github.com/sindresorhus/is-svg).* |
21409
412
153