file-type
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -268,3 +268,10 @@ 'use strict'; | ||
if (buf[0] === 0x46 && buf[1] === 0x4c && buf[2] === 0x56 && buf[3] === 0x01) { | ||
return { | ||
ext: 'flv', | ||
mime: 'video/x-flv' | ||
}; | ||
} | ||
return null; | ||
}; |
{ | ||
"name": "file-type", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -82,3 +82,5 @@ "license": "MIT", | ||
"ttf", | ||
"otf" | ||
"otf", | ||
"ico", | ||
"flv" | ||
], | ||
@@ -85,0 +87,0 @@ "dependencies": { |
@@ -133,2 +133,4 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- `otf` | ||
- `ico` | ||
- `flv` | ||
@@ -135,0 +137,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
12824
271
144