File tree 6 files changed +14
-1
lines changed 6 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export type FileExtension =
146
146
| 'dwg'
147
147
| 'parquet'
148
148
| 'class'
149
+ | 'arj'
149
150
; // eslint-disable-line semi-style
150
151
151
152
export type MimeType =
@@ -288,6 +289,7 @@ export type MimeType =
288
289
| 'image/vnd.dwg'
289
290
| 'application/x-parquet'
290
291
| 'application/java-vm'
292
+ | 'application/x-arj'
291
293
; // eslint-disable-line semi-style
292
294
293
295
export type FileTypeResult = {
Original file line number Diff line number Diff line change @@ -149,6 +149,13 @@ class FileTypeParser {
149
149
} ;
150
150
}
151
151
152
+ if ( this . check ( [ 0x60 , 0xEA ] ) ) {
153
+ return {
154
+ ext : 'arj' ,
155
+ mime : 'application/x-arj' ,
156
+ } ;
157
+ }
158
+
152
159
// -- 3-byte signatures --
153
160
154
161
if ( this . check ( [ 0xEF , 0xBB , 0xBF ] ) ) { // UTF-8-BOM
Original file line number Diff line number Diff line change 198
198
" pst" ,
199
199
" dwg" ,
200
200
" parquet" ,
201
- " class"
201
+ " class" ,
202
+ " arj"
202
203
],
203
204
"dependencies" : {
204
205
"readable-web-to-node-stream" : " ^3.0.2" ,
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ Returns a `Set<string>` of supported MIME types.
351
351
- [` ape` ](https://en.wikipedia.org/wiki/Monkey%27s_Audio) - Monkey's Audio
352
352
- [` apng` ](https://en.wikipedia.org/wiki/APNG) - Animated Portable Network Graphics
353
353
- [` ar` ](https://en.wikipedia.org/wiki/Ar_(Unix)) - Archive file
354
+ - [` arj` ](https://en.wikipedia.org/wiki/ARJ) - Archive file
354
355
- [` arrow` ](https://arrow.apache.org) - Columnar format for tables of data
355
356
- [` arw` ](https://en.wikipedia.org/wiki/Raw_image_format#ARW) - Sony Alpha Raw image file
356
357
- [` asar` ](https://github.com/electron/asar#format) - Archive format primarily used to enclose Electron applications
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ export const extensions = [
143
143
'dwg' ,
144
144
'parquet' ,
145
145
'class' ,
146
+ 'arj' ,
146
147
] ;
147
148
148
149
export const mimeTypes = [
@@ -285,4 +286,5 @@ export const mimeTypes = [
285
286
'image/vnd.dwg' ,
286
287
'application/x-parquet' ,
287
288
'application/java-vm' ,
289
+ 'application/x-arj' ,
288
290
] ;
You can’t perform that action at this time.
0 commit comments