jpsp91 07dd8af64f root page set | 6 年前 | |
---|---|---|
.. | ||
index.js | 6 年前 | |
license | 6 年前 | |
package.json | 6 年前 | |
readme.md | 6 年前 |
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