Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

file-type

Package Overview
Dependencies
Maintainers
2
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-type - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

index.js

@@ -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;
};

4

package.json
{
"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).*

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc