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
    1,581
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    1,581
  • 2.1.0
    31,955,983
  • 2.0.1
    2,403
  • 2.0.0
    78
  • 1.0.1
    7,605,901
  • 1.0.0
    153

Package Sidebar

Install

npm i is-binary-path

Weekly Downloads

39,566,099

Version

3.0.0

License

MIT

Unpacked Size

2.98 kB

Total Files

5

Last publish

Collaborators

  • paulmillr
  • sindresorhus