Gathering detailed insights and metrics for file-is-binary
Gathering detailed insights and metrics for file-is-binary
Gathering detailed insights and metrics for file-is-binary
Gathering detailed insights and metrics for file-is-binary
npm install file-is-binary
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
6 Stars
18 Commits
3 Watching
1 Branches
2 Contributors
Updated on 12 Apr 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-13%
4,822
Compared to previous day
Last week
3.6%
33,650
Compared to previous week
Last month
20.9%
133,695
Compared to previous month
Last year
56.6%
1,989,038
Compared to previous year
2
3
Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.
Install with npm:
1$ npm install --save file-is-binary
Uses isbinaryfile to check the file contents and return
1var isBinary = require('file-is-binary');
2
3var file = new File({path: 'foo.gif', contents: fs.readFileSync('foo.gif')});
4console.log(isBinary(file));
5
6var file = new File({path: 'bar.txt', contents: fs.readFileSync('bar.txt')});
7console.log(isBinary(file));
8//=> false
contents
property on a file object. Abstraction from vinyl-fs to support stream or… more | homepagestat
property on a file object. Abstraction from vinyl-fs to support stream or… more | homepage.isBinary()
function to the file
object, similar to file.isNull()
and file.isStream()
. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
1$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
1$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on May 19, 2017.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More