file-type
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -282,3 +282,10 @@ 'use strict'; | ||
if (buf[0] === 0xfd && buf[1] === 0x37 && buf[2] === 0x7a && buf[3] === 0x58 && buf[4] === 0x5a && buf[5] === 0x00) { | ||
return { | ||
ext: 'xz', | ||
mime: 'application/x-xz' | ||
}; | ||
} | ||
return null; | ||
}; |
{ | ||
"name": "file-type", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -85,3 +85,4 @@ "license": "MIT", | ||
"flv", | ||
"ps" | ||
"ps", | ||
"xz" | ||
], | ||
@@ -88,0 +89,0 @@ "dependencies": { |
@@ -136,2 +136,3 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- `ps` | ||
- `xz` | ||
@@ -138,0 +139,0 @@ *SVG isn't included as it requires the whole file to be read, but you can get it [here](https://github.com/sindresorhus/is-svg).* |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13150
5
283
146