You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
696 B
696 B
is-binary-path
Check if a filepath is a binary file
Install
$ npm install --save is-binary-path
Usage
var isBinaryPath = require('is-binary-path');
isBinaryPath('src/unicorn.png');
//=> true
isBinaryPath('src/unicorn.txt');
//=> false
Related
binary-extensions
- List of binary file extensionsis-text-path
- Check if a filepath is a text file
License
MIT © Sindre Sorhus