Eric Foster 35b96bc934 initial commit | 6 lat temu | |
---|---|---|
.. | ||
index.js | 6 lat temu | |
license | 6 lat temu | |
package.json | 6 lat temu | |
readme.md | 6 lat temu |
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