sxoinas12 82e781b8aa Graph & Tree | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=5) %!d(string=hai) anos | |
license | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos | |
readme.md | %!s(int64=5) %!d(string=hai) anos |
Check if a filepath is a binary file
$ npm install --save is-binary-path
var isBinaryPath = require('is-binary-path');
isBinaryPath('src/unicorn.png');
//=> true
isBinaryPath('src/unicorn.txt');
//=> false
binary-extensions
- List of binary file extensionsis-text-path
- Check if a filepath is a text fileMIT © Sindre Sorhus