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