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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    759
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    759
  • 2.1.0
    65,893,584
  • 2.0.1
    1,254
  • 2.0.0
    1,095
  • 1.0.1
    30,031,487
  • 1.0.0
    526

Package Sidebar

Install

npm i is-binary-path

Weekly Downloads

36,451,347

Version

3.0.0

License

MIT

Unpacked Size

2.98 kB

Total Files

5

Last publish

Collaborators

  • paulmillr
  • sindresorhus