is-binary-path
Check if a file path is a binary file
Last updated 6 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-binary-path 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.0                                ...           latest (6 months ago)

5 Versions

  • 2.1.0                                ...           6 months ago
  • 2.0.1                                ...           7 months ago
  • 2.0.0                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |