Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 696 Bytes

File metadata and controls

34 lines (19 loc) · 696 Bytes

is-binary-path Build Status

Check if a filepath is a binary file

Install

$ npm install --save is-binary-path

Usage

var isBinaryPath = require('is-binary-path');

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

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

Related

License

MIT © Sindre Sorhus