Skip to content

sindresorhus/is-binary-path

Repository files navigation

is-binary-path

Check if a file path is a binary file

Install

npm install is-binary-path

Usage

import isBinaryPath from 'is-binary-path';

isBinaryPath('source/unicorn.png');
//=> true

isBinaryPath('source/unicorn.txt');
//=> false

Related