file-type
Advanced tools
+2
-0
@@ -153,2 +153,3 @@ import type {Readable as ReadableStream} from 'node:stream'; | ||
| | 'ace' | ||
| | 'avro' | ||
| ; // eslint-disable-line semi-style | ||
@@ -300,2 +301,3 @@ | ||
| | 'application/x-ace-compressed' | ||
| | 'application/avro' | ||
| ; // eslint-disable-line semi-style | ||
@@ -302,0 +304,0 @@ |
+7
-0
@@ -252,2 +252,9 @@ import {Buffer} from 'node:buffer'; | ||
| if (this.check([0x4F, 0x62, 0x6A, 0x01])) { | ||
| return { | ||
| ext: 'avro', | ||
| mime: 'application/avro', | ||
| }; | ||
| } | ||
| if (this.checkString('FLIF')) { | ||
@@ -254,0 +261,0 @@ return { |
+5
-4
| { | ||
| "name": "file-type", | ||
| "version": "18.3.0", | ||
| "version": "18.4.0", | ||
| "description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer", | ||
@@ -205,3 +205,4 @@ "license": "MIT", | ||
| "cpio", | ||
| "ace" | ||
| "ace", | ||
| "avro" | ||
| ], | ||
@@ -215,3 +216,3 @@ "dependencies": { | ||
| "@tokenizer/token": "^0.3.0", | ||
| "@types/node": "^18.16.0", | ||
| "@types/node": "^20.1.2", | ||
| "ava": "^5.2.0", | ||
@@ -221,3 +222,3 @@ "commonmark": "^0.30.0", | ||
| "tsd": "^0.28.1", | ||
| "xo": "^0.54.1" | ||
| "xo": "^0.54.2" | ||
| }, | ||
@@ -224,0 +225,0 @@ "xo": { |
+1
-30
@@ -11,32 +11,2 @@ # file-type | ||
| <br> | ||
| --- | ||
| <div align="center"> | ||
| <p> | ||
| <p> | ||
| <sup> | ||
| <a href="https://github.com/sponsors/sindresorhus">My open source work is supported by the community</a> | ||
| </sup> | ||
| </p> | ||
| <sup>Special thanks to:</sup> | ||
| <br> | ||
| <br> | ||
| <a href="https://bit.io/?utm_campaign=github_repo&utm_medium=referral&utm_content=file-type&utm_source=github"> | ||
| <div> | ||
| <img src="https://sindresorhus.com/assets/thanks/bitio-logo.svg" width="190" alt="bit.io"> | ||
| </div> | ||
| <b>Instant, shareable cloud PostgreSQL database</b> | ||
| <div> | ||
| <sup>Import any dataset in seconds, share with anyone with a click, try without signing up</sup> | ||
| </div> | ||
| </a> | ||
| </p> | ||
| </div> | ||
| --- | ||
| <br> | ||
| ## Install | ||
@@ -363,2 +333,3 @@ | ||
| - [`avif`](https://en.wikipedia.org/wiki/AV1#AV1_Image_File_Format_(AVIF)) - AV1 Image File Format | ||
| - [`avro`](https://en.wikipedia.org/wiki/Apache_Avro#Avro_Object_Container_File) - Object container file developed by Apache Avro | ||
| - [`blend`](https://wiki.blender.org/index.php/Dev:Source/Architecture/File_Format) - Blender project | ||
@@ -365,0 +336,0 @@ - [`bmp`](https://en.wikipedia.org/wiki/BMP_file_format) - Bitmap image file |
+2
-0
@@ -150,2 +150,3 @@ export const extensions = [ | ||
| 'ace', | ||
| 'avro', | ||
| ]; | ||
@@ -297,2 +298,3 @@ | ||
| 'application/x-ace-compressed', | ||
| 'application/avro', | ||
| ]; |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2200
0.46%84263
-0.4%484
-5.65%