file-type 18.3.0 → 18.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.d.ts +2 -0
- package/core.js +7 -0
- package/package.json +5 -4
- package/readme.md +1 -30
- package/supported.js +2 -0
package/core.d.ts
CHANGED
|
@@ -150,6 +150,7 @@ export type FileExtension =
|
|
|
150
150
|
| 'arj'
|
|
151
151
|
| 'cpio'
|
|
152
152
|
| 'ace'
|
|
153
|
+
| 'avro'
|
|
153
154
|
; // eslint-disable-line semi-style
|
|
154
155
|
|
|
155
156
|
export type MimeType =
|
|
@@ -296,6 +297,7 @@ export type MimeType =
|
|
|
296
297
|
| 'application/x-arj'
|
|
297
298
|
| 'application/x-cpio'
|
|
298
299
|
| 'application/x-ace-compressed'
|
|
300
|
+
| 'application/avro'
|
|
299
301
|
; // eslint-disable-line semi-style
|
|
300
302
|
|
|
301
303
|
export type FileTypeResult = {
|
package/core.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "file-type",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.0",
|
|
4
4
|
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/file-type",
|
|
@@ -202,7 +202,8 @@
|
|
|
202
202
|
"class",
|
|
203
203
|
"arj",
|
|
204
204
|
"cpio",
|
|
205
|
-
"ace"
|
|
205
|
+
"ace",
|
|
206
|
+
"avro"
|
|
206
207
|
],
|
|
207
208
|
"dependencies": {
|
|
208
209
|
"readable-web-to-node-stream": "^3.0.2",
|
|
@@ -211,12 +212,12 @@
|
|
|
211
212
|
},
|
|
212
213
|
"devDependencies": {
|
|
213
214
|
"@tokenizer/token": "^0.3.0",
|
|
214
|
-
"@types/node": "^
|
|
215
|
+
"@types/node": "^20.1.2",
|
|
215
216
|
"ava": "^5.2.0",
|
|
216
217
|
"commonmark": "^0.30.0",
|
|
217
218
|
"noop-stream": "^1.0.0",
|
|
218
219
|
"tsd": "^0.28.1",
|
|
219
|
-
"xo": "^0.54.
|
|
220
|
+
"xo": "^0.54.2"
|
|
220
221
|
},
|
|
221
222
|
"xo": {
|
|
222
223
|
"envs": [
|
package/readme.md
CHANGED
|
@@ -8,36 +8,6 @@ This package is for detecting binary-based file formats, not text-based formats
|
|
|
8
8
|
|
|
9
9
|
We accept contributions for commonly used modern file formats, not historical or obscure ones. Open an issue first for discussion.
|
|
10
10
|
|
|
11
|
-
<br>
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
<div align="center">
|
|
16
|
-
<p>
|
|
17
|
-
<p>
|
|
18
|
-
<sup>
|
|
19
|
-
<a href="https://github.com/sponsors/sindresorhus">My open source work is supported by the community</a>
|
|
20
|
-
</sup>
|
|
21
|
-
</p>
|
|
22
|
-
<sup>Special thanks to:</sup>
|
|
23
|
-
<br>
|
|
24
|
-
<br>
|
|
25
|
-
<a href="https://bit.io/?utm_campaign=github_repo&utm_medium=referral&utm_content=file-type&utm_source=github">
|
|
26
|
-
<div>
|
|
27
|
-
<img src="https://sindresorhus.com/assets/thanks/bitio-logo.svg" width="190" alt="bit.io">
|
|
28
|
-
</div>
|
|
29
|
-
<b>Instant, shareable cloud PostgreSQL database</b>
|
|
30
|
-
<div>
|
|
31
|
-
<sup>Import any dataset in seconds, share with anyone with a click, try without signing up</sup>
|
|
32
|
-
</div>
|
|
33
|
-
</a>
|
|
34
|
-
</p>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
<br>
|
|
40
|
-
|
|
41
11
|
## Install
|
|
42
12
|
|
|
43
13
|
```sh
|
|
@@ -359,6 +329,7 @@ Returns a `Set<string>` of supported MIME types.
|
|
|
359
329
|
- [`asf`](https://en.wikipedia.org/wiki/Advanced_Systems_Format) - Advanced Systems Format
|
|
360
330
|
- [`avi`](https://en.wikipedia.org/wiki/Audio_Video_Interleave) - Audio Video Interleave file
|
|
361
331
|
- [`avif`](https://en.wikipedia.org/wiki/AV1#AV1_Image_File_Format_(AVIF)) - AV1 Image File Format
|
|
332
|
+
- [`avro`](https://en.wikipedia.org/wiki/Apache_Avro#Avro_Object_Container_File) - Object container file developed by Apache Avro
|
|
362
333
|
- [`blend`](https://wiki.blender.org/index.php/Dev:Source/Architecture/File_Format) - Blender project
|
|
363
334
|
- [`bmp`](https://en.wikipedia.org/wiki/BMP_file_format) - Bitmap image file
|
|
364
335
|
- [`bpg`](https://bellard.org/bpg/) - Better Portable Graphics file
|
package/supported.js
CHANGED
|
@@ -147,6 +147,7 @@ export const extensions = [
|
|
|
147
147
|
'arj',
|
|
148
148
|
'cpio',
|
|
149
149
|
'ace',
|
|
150
|
+
'avro',
|
|
150
151
|
];
|
|
151
152
|
|
|
152
153
|
export const mimeTypes = [
|
|
@@ -293,4 +294,5 @@ export const mimeTypes = [
|
|
|
293
294
|
'application/x-arj',
|
|
294
295
|
'application/x-cpio',
|
|
295
296
|
'application/x-ace-compressed',
|
|
297
|
+
'application/avro',
|
|
296
298
|
];
|