Bachir Soussi Chiadmi ac58a24f5c added bower, gulp | 7 vuotta sitten | |
---|---|---|
.. | ||
index.js | 7 vuotta sitten | |
license | 7 vuotta sitten | |
package.json | 7 vuotta sitten | |
readme.md | 7 vuotta sitten |
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