Socket
Socket
Sign inDemoInstall

file-type

Package Overview
Dependencies
Maintainers
2
Versions
149
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 2.3.0 to 2.4.0

7

index.js

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

6

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

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