file-type
Advanced tools
Comparing version 12.3.0 to 12.3.1
@@ -122,5 +122,5 @@ 'use strict'; | ||
check([0x49, 0x49, 0x2A, 0x00]) && | ||
(check([0x10, 0xFB, 0x86, 0x01], {offset: 4}) || | ||
check([0x08, 0x00, 0x00, 0x00, 0x13, 0x00], {offset: 4}) || | ||
check([0x08, 0x00, 0x00, 0x00, 0x12, 0x00], {offset: 4})) | ||
(check([0x10, 0xFB, 0x86, 0x01], {offset: 4}) || check([0x08, 0x00, 0x00, 0x00], {offset: 4})) && | ||
// This pattern differentiates ARW from other TIFF-ish file types: | ||
check([0x00, 0xFE, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x01], {offset: 9}) | ||
) { | ||
@@ -127,0 +127,0 @@ return { |
{ | ||
"name": "file-type", | ||
"version": "12.3.0", | ||
"version": "12.3.1", | ||
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -60,9 +60,9 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
const stream = await fileType.stream(stream.pipeline(read, decipher)); | ||
const fileTypeStream = await fileType.stream(stream.pipeline(read, decipher)); | ||
console.log(stream.fileType); | ||
console.log(fileTypeStream.fileType); | ||
//=> {ext: 'mov', mime: 'video/quicktime'} | ||
const write = fs.createWriteStream(`decrypted.${stream.fileType.ext}`); | ||
stream.pipe(write); | ||
const write = fs.createWriteStream(`decrypted.${fileTypeStream.fileType.ext}`); | ||
fileTypeStream.pipe(write); | ||
})(); | ||
@@ -69,0 +69,0 @@ ``` |
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
51732