Logo white

BJ_web_developers / dyitoc

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • dyitoc
  • node_modules
  • is-binary-path
  • readme.md
  • add
    aaac7fed
    liuqimichale authored
    2019-01-25 15:48:53 +0800  
    Browse Code »
readme.md 696 Bytes
Edit Raw Blame History Permalink

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

  • <code>binary-extensions</code> - List of binary file extensions
  • <code>is-text-path</code> - Check if a filepath is a text file

License

MIT © Sindre Sorhus