caoge c760052ff9 机车状态修改 | vor 8 Monaten | |
---|---|---|
.. | ||
index.js | vor 8 Monaten | |
license | vor 8 Monaten | |
package.json | vor 8 Monaten | |
readme.md | vor 8 Monaten |
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