file-type
Advanced tools
Comparing version 15.0.1 to 16.0.0
@@ -40,3 +40,2 @@ /// <reference types="node"/> | ||
| 'avi' | ||
| 'wmv' | ||
| 'mpg' | ||
@@ -103,3 +102,2 @@ | 'mp2' | ||
| 'asf' | ||
| 'wma' | ||
| 'dcm' | ||
@@ -141,3 +139,4 @@ | 'mpc' | ||
| 'pgp' | ||
| 'asar'; | ||
| 'asar' | ||
| 'stl'; | ||
@@ -181,3 +180,3 @@ type MimeType = | ||
| 'audio/qcelp' | ||
| 'audio/x-ms-wma' | ||
| 'audio/x-ms-asf' | ||
| 'video/x-ms-asf' | ||
@@ -271,3 +270,4 @@ | 'application/vnd.ms-asf' | ||
| 'application/pgp-encrypted' | ||
| 'application/x-asar'; | ||
| 'application/x-asar' | ||
| 'model/stl'; | ||
@@ -274,0 +274,0 @@ interface FileTypeResult { |
13
core.js
@@ -923,2 +923,9 @@ 'use strict'; | ||
if (checkString('solid ')) { | ||
return { | ||
ext: 'stl', | ||
mime: 'model/stl' | ||
}; | ||
} | ||
// -- 7-byte signatures -- | ||
@@ -1066,4 +1073,4 @@ | ||
return { | ||
ext: 'wma', | ||
mime: 'audio/x-ms-wma' | ||
ext: 'asf', | ||
mime: 'audio/x-ms-asf' | ||
}; | ||
@@ -1075,3 +1082,3 @@ } | ||
return { | ||
ext: 'wmv', | ||
ext: 'asf', | ||
mime: 'video/x-ms-asf' | ||
@@ -1078,0 +1085,0 @@ }; |
{ | ||
"name": "file-type", | ||
"version": "15.0.1", | ||
"version": "16.0.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer", | ||
@@ -136,3 +136,2 @@ "license": "MIT", | ||
"heic", | ||
"wma", | ||
"ics", | ||
@@ -156,3 +155,2 @@ "glb", | ||
"qcp", | ||
"wmv", | ||
"asf", | ||
@@ -185,3 +183,4 @@ "ogv", | ||
"pgp", | ||
"asar" | ||
"asar", | ||
"stl" | ||
], | ||
@@ -188,0 +187,0 @@ "devDependencies": { |
@@ -7,2 +7,4 @@ # file-type [![Build Status](https://travis-ci.com/sindresorhus/file-type.svg?branch=master)](https://travis-ci.com/github/sindresorhus/file-type) | ||
This package is for detecting binary-based file formats, not text-based formats like `.txt`, `.csv`, `.svg`, etc. | ||
## Install | ||
@@ -371,4 +373,2 @@ | ||
- [`asf`](https://en.wikipedia.org/wiki/Advanced_Systems_Format) - Advanced Systems Format | ||
- [`wma`](https://en.wikipedia.org/wiki/Windows_Media_Audio) - Windows Media Audio | ||
- [`wmv`](https://en.wikipedia.org/wiki/Windows_Media_Video) - Windows Media Video | ||
- [`dcm`](https://en.wikipedia.org/wiki/DICOM#Data_format) - DICOM Image File | ||
@@ -408,2 +408,3 @@ - [`mpc`](https://en.wikipedia.org/wiki/Musepack) - Musepack (SV7 & SV8) | ||
- [`asar`](https://github.com/electron/asar#format) - Archive format primarily used to enclose Electron applications | ||
- [`stl`](https://en.wikipedia.org/wiki/STL_(file_format)) - Standard Tesselated Geometry File Format (ASCII only) | ||
@@ -410,0 +411,0 @@ *Pull requests are welcome for additional commonly used file types.* |
@@ -101,4 +101,2 @@ 'use strict'; | ||
'wv', | ||
'wmv', | ||
'wma', | ||
'dcm', | ||
@@ -138,3 +136,4 @@ 'ics', | ||
'pgp', | ||
'asar' | ||
'asar', | ||
'stl' | ||
], | ||
@@ -178,3 +177,3 @@ mimeTypes: [ | ||
'audio/qcelp', | ||
'audio/x-ms-wma', | ||
'audio/x-ms-asf', | ||
'video/x-ms-asf', | ||
@@ -268,4 +267,5 @@ 'application/vnd.ms-asf', | ||
'application/pgp-encrypted', | ||
'application/x-asar' | ||
'application/x-asar', | ||
'model/stl' | ||
] | ||
}; |
73237
2008
435