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 2.5.0 to 2.6.0

license

7

index.js

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

5

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

1

readme.md

@@ -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).*

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