file-type
Advanced tools
Comparing version 10.2.0 to 10.3.0
@@ -870,2 +870,9 @@ 'use strict'; | ||
if (check([0x44, 0x49, 0x43, 0x4D], {offset: 128})) { | ||
return { | ||
ext: 'dcm', | ||
mime: 'application/dicom' | ||
}; | ||
} | ||
return null; | ||
@@ -872,0 +879,0 @@ }; |
{ | ||
"name": "file-type", | ||
"version": "10.2.0", | ||
"version": "10.3.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -179,2 +179,3 @@ # file-type [](https://travis-ci.org/sindresorhus/file-type) | ||
- [`wmv`](https://en.wikipedia.org/wiki/Windows_Media_Video) - Windows Media Video | ||
- [`dcm`](https://en.wikipedia.org/wiki/DICOM#Data_format) - DICOM Image File | ||
@@ -181,0 +182,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).* |
28302
768
200