is-binary-path
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i is-binary-path

Weekly Downloads

40,649,407

Version

3.0.0

License

MIT

Unpacked Size

2.98 kB

Total Files

5

Last publish

Collaborators

  • paulmillr
  • sindresorhus