sensordb2 e64a8defe5 3.17 | 1 year ago | |
---|---|---|
.. | ||
index.js | 1 year ago | |
license | 1 year ago | |
package.json | 1 year ago | |
readme.md | 1 year ago |
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