Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=6) %!d(string=hai) anos | |
license | %!s(int64=6) %!d(string=hai) anos | |
package.json | %!s(int64=6) %!d(string=hai) anos | |
readme.md | %!s(int64=6) %!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