Logo white

BJ_web_developers / cityOperationCenter

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • cityOperationCenter
  • node_modules
  • is-binary-path
  • readme.md
  • 添加宜春 天水 宣化
    2a09d1a4
    liuqimichale authored
    2021-02-23 14:00:09 +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