root 3bf41bf355 update | 1 年之前 | |
---|---|---|
.. | ||
index.js | 1 年之前 | |
license | 1 年之前 | |
package.json | 1 年之前 | |
readme.md | 1 年之前 |
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