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

file-is-binary

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-is-binary - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

5

index.js

@@ -16,2 +16,7 @@ 'use strict';

if (isObject(file.contents) && typeof file.pipe === 'function') {
file._isBinary = false;
return false;
}
if (isNull(file) || isDirectory(file)) {

@@ -18,0 +23,0 @@ file._isBinary = false;

22

package.json
{
"name": "file-is-binary",
"description": "Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.",
"version": "0.2.1",
"version": "0.2.2",
"homepage": "https://github.com/jonschlinkert/file-is-binary",

@@ -13,5 +13,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"files": [
"index.js",
"LICENSE",
"README.md"
"index.js"
],

@@ -26,10 +24,10 @@ "main": "index.js",

"dependencies": {
"file-stat": "^0.2.3",
"isbinaryfile": "^3.0.1",
"isobject": "^2.1.0"
"file-stat": "^1.0.0",
"isbinaryfile": "^3.0.2",
"isobject": "^3.0.0"
},
"devDependencies": {
"gulp-format-md": "^0.1.10",
"mocha": "^3.0.2",
"vinyl": "^1.2.0"
"gulp-format-md": "^0.1.11",
"mocha": "^3.2.0",
"vinyl": "^2.0.1"
},

@@ -52,5 +50,5 @@ "keywords": [

"list": [
"gulp-is-binary",
"file-contents",
"file-stat"
"file-stat",
"gulp-is-binary"
]

@@ -57,0 +55,0 @@ },

Sorry, the diff of this file is not supported yet

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