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

detect-file-type

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-file-type - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

6

index.js

@@ -21,2 +21,4 @@ 'use strict';

var noopCallback = function noopCallback() {};
exports.default = {

@@ -37,3 +39,3 @@ fromFile: function fromFile(filePath, bufferLength, callback) {

var file = _fs2.default.open(filePath, 'r', function (err, fd) {
_fs2.default.open(filePath, 'r', function (err, fd) {

@@ -57,2 +59,4 @@ if (err) {

_fs2.default.close(fd, noopCallback);
if (err) {

@@ -59,0 +63,0 @@ return callback(err);

2

package.json
{
"name": "detect-file-type",
"version": "0.1.2",
"version": "0.1.3",
"description": "Detect file type by signature",

@@ -5,0 +5,0 @@ "main": "index.js",

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