file-type 20.3.0 → 20.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +7 -0
- package/package.json +2 -1
- package/readme.md +1 -0
- package/supported.js +2 -0
package/core.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "file-type",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.4.0",
|
|
4
4
|
"description": "Detect the file type of a file, stream, or data",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/file-type",
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
"eot",
|
|
125
125
|
"ttf",
|
|
126
126
|
"otf",
|
|
127
|
+
"ttc",
|
|
127
128
|
"ico",
|
|
128
129
|
"flv",
|
|
129
130
|
"ps",
|
package/readme.md
CHANGED
|
@@ -578,6 +578,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream.
|
|
|
578
578
|
- [`swf`](https://en.wikipedia.org/wiki/SWF) - Adobe Flash Player file
|
|
579
579
|
- [`tar`](https://en.wikipedia.org/wiki/Tar_(computing)#File_format) - Tarball archive file
|
|
580
580
|
- [`tif`](https://en.wikipedia.org/wiki/Tagged_Image_File_Format) - Tagged Image file
|
|
581
|
+
- [`ttc`](https://en.wikipedia.org/wiki/TrueType#TrueType_Collection) - TrueType Collection font
|
|
581
582
|
- [`ttf`](https://en.wikipedia.org/wiki/TrueType) - TrueType font
|
|
582
583
|
- [`vcf`](https://en.wikipedia.org/wiki/VCard) - vCard
|
|
583
584
|
- [`voc`](https://wiki.multimedia.cx/index.php/Creative_Voice) - Creative Voice File
|
package/supported.js
CHANGED
|
@@ -58,6 +58,7 @@ export const extensions = [
|
|
|
58
58
|
'eot',
|
|
59
59
|
'ttf',
|
|
60
60
|
'otf',
|
|
61
|
+
'ttc',
|
|
61
62
|
'ico',
|
|
62
63
|
'flv',
|
|
63
64
|
'ps',
|
|
@@ -239,6 +240,7 @@ export const mimeTypes = [
|
|
|
239
240
|
'application/vnd.ms-fontobject',
|
|
240
241
|
'font/ttf',
|
|
241
242
|
'font/otf',
|
|
243
|
+
'font/collection',
|
|
242
244
|
'image/x-icon',
|
|
243
245
|
'video/x-flv',
|
|
244
246
|
'application/postscript',
|