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

2.1.0 • Public • Published

is-binary-path Build Status

Check if a file path is a binary file

Install

$ npm install is-binary-path

Usage

const isBinaryPath = require('is-binary-path');
 
isBinaryPath('source/unicorn.png');
//=> true
 
isBinaryPath('source/unicorn.txt');
//=> false

Related

License

MIT © Sindre Sorhus, Paul Miller

Package Sidebar

Install

npm i is-binary-path

Weekly Downloads

38,277,865

Version

2.1.0

License

MIT

Unpacked Size

3.08 kB

Total Files

5

Last publish

Collaborators

  • paulmillr
  • sindresorhus