file-type
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -27,3 +27,7 @@ 'use strict'; | ||
if (require('is-rtf')(buf)) { | ||
return 'rtf'; | ||
} | ||
return require('image-type')(buf) || require('archive-type')(buf) || require ('audio-type')(buf) || false; | ||
}; |
{ | ||
"name": "file-type", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -63,2 +63,3 @@ "license": "MIT", | ||
"zip", | ||
"rtf", | ||
"mp4" | ||
@@ -75,2 +76,3 @@ ], | ||
"is-swf": "^1.0.0", | ||
"is-rtf": "^1.0.0", | ||
"meow": "^2.0.0" | ||
@@ -77,0 +79,0 @@ }, |
@@ -118,2 +118,3 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- [`swf`](https://github.com/kevva/is-swf) | ||
- [`rtf`](https://github.com/veacks/is-rtf) | ||
@@ -120,0 +121,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
5480
58
128
10
+ Addedis-rtf@^1.0.0
+ Addedis-rtf@1.0.0(transitive)