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 12.2.0 to 12.3.0

22

index.d.ts

@@ -99,3 +99,2 @@ /// <reference types="node"/>

| 'wma'
| 'wmv'
| 'dcm'

@@ -111,3 +110,2 @@ | 'mpc'

| 'ac3'
| 'm4a'
| 'm4b'

@@ -119,3 +117,9 @@ | 'm4p'

| 'f4p'
| 'f4v';
| 'f4v'
| 'mie'
| 'ogv'
| 'ogm'
| 'oga'
| 'spx'
| 'ogx';

@@ -195,2 +199,3 @@ type MimeType =

| 'application/x-msi'
| 'application/x-mie'
| 'application/mxf'

@@ -222,3 +227,12 @@ | 'video/mp2t'

| 'audio/vnd.dolby.dd-raw'
| 'audio/x-m4a';
| 'audio/x-m4a'
| 'image/apng'
| 'image/x-olympus-orf'
| 'image/x-sony-arw'
| 'image/x-adobe-dng'
| 'image/x-nikon-nef'
| 'image/x-panasonic-rw2'
| 'image/x-fujifilm-raf'
| 'video/x-m4v'
| 'video/3gpp2';

@@ -225,0 +239,0 @@ interface FileTypeResult {

@@ -1016,2 +1016,9 @@ 'use strict';

}
if ((check([0x7E, 0x10, 0x04]) || check([0x7E, 0x18, 0x04])) && check([0x30, 0x4D, 0x49, 0x45], {offset: 4})) {
return {
ext: 'mie',
mime: 'application/x-mie'
};
}
};

@@ -1018,0 +1025,0 @@

{
"name": "file-type",
"version": "12.2.0",
"version": "12.3.0",
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer",

@@ -136,3 +136,2 @@ "license": "MIT",

"3g2",
"m4a",
"m4b",

@@ -144,3 +143,20 @@ "m4p",

"f4p",
"f4v"
"f4v",
"mie",
"qcp",
"wmv",
"asf",
"ogv",
"ogm",
"oga",
"spx",
"ogx",
"ape",
"wv",
"cur",
"nes",
"crx",
"ktx",
"dcm",
"mpc"
],

@@ -147,0 +163,0 @@ "devDependencies": {

9

readme.md

@@ -163,8 +163,11 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type)

- [`avi`](https://en.wikipedia.org/wiki/Audio_Video_Interleave)
- [`wmv`](https://en.wikipedia.org/wiki/Windows_Media_Video)
- [`mpg`](https://en.wikipedia.org/wiki/MPEG-1)
- [`mp2`](https://en.wikipedia.org/wiki/MPEG-1_Audio_Layer_II)
- [`mp3`](https://en.wikipedia.org/wiki/MP3)
- [`m4a`](https://en.wikipedia.org/wiki/MPEG-4_Part_14#.MP4_versus_.M4A)
- [`ogg`](https://en.wikipedia.org/wiki/Ogg)
- [`ogv`](https://en.wikipedia.org/wiki/Ogg)
- [`ogm`](https://en.wikipedia.org/wiki/Ogg)
- [`oga`](https://en.wikipedia.org/wiki/Ogg)
- [`spx`](https://en.wikipedia.org/wiki/Ogg)
- [`ogx`](https://en.wikipedia.org/wiki/Ogg)
- [`opus`](https://en.wikipedia.org/wiki/Opus_(audio_format))

@@ -246,2 +249,3 @@ - [`flac`](https://en.wikipedia.org/wiki/FLAC)

- [`f4b`](https://en.wikipedia.org/wiki/Flash_Video) - Audiobook and podcast ISO base media file format used by Adobe Flash Player
- [`mie`](https://en.wikipedia.org/wiki/Sidecar_file) - Dedicated meta information format which supports storage of binary as well as textual meta information.

@@ -262,2 +266,3 @@ *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).*

- [Mikael Finstad](https://github.com/mifi)
- [Ben Brook](https://github.com/bencmbrook)

@@ -264,0 +269,0 @@

@@ -35,3 +35,2 @@ 'use strict';

'avi',
'wmv',
'mpg',

@@ -117,3 +116,8 @@ 'mp2',

'f4b',
'f4a'
'f4a',
'mie',
'asf',
'ogm',
'ogx',
'mpc'
],

@@ -193,2 +197,3 @@ mimeTypes: [

'application/x-msi',
'application/x-mie',
'application/mxf',

@@ -220,4 +225,13 @@ 'video/mp2t',

'audio/vnd.dolby.dd-raw',
'audio/x-m4a'
'audio/x-m4a',
'image/apng',
'image/x-olympus-orf',
'image/x-sony-arw',
'image/x-adobe-dng',
'image/x-nikon-nef',
'image/x-panasonic-rw2',
'image/x-fujifilm-raf',
'video/x-m4v',
'video/3gpp2'
]
};
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