file-type
Advanced tools
Comparing version 8.0.0 to 8.1.0
14
index.js
@@ -471,2 +471,9 @@ 'use strict'; | ||
if (check([0x4D, 0x41, 0x43, 0x20])) { | ||
return { | ||
ext: 'ape', | ||
mime: 'audio/ape' | ||
}; | ||
} | ||
if (check([0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A])) { | ||
@@ -795,3 +802,10 @@ return { | ||
if (check([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])) { | ||
return { | ||
ext: 'ktx', | ||
mime: 'image/ktx' | ||
}; | ||
} | ||
return null; | ||
}; |
{ | ||
"name": "file-type", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -165,2 +165,4 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- [`cur`](https://en.wikipedia.org/wiki/ICO_(file_format)) | ||
- [`ktx`](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/) | ||
- [`ape`](https://en.wikipedia.org/wiki/Monkey%27s_Audio) - Monkey's Audio | ||
@@ -167,0 +169,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).* |
25531
707
187