项目原始demo,不改动
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.

12345678910111213141516171819202122232425262728293031323334
  1. # is-binary-path [![Build Status](https://travis-ci.org/sindresorhus/is-binary-path.svg?branch=master)](https://travis-ci.org/sindresorhus/is-binary-path)
  2. > Check if a filepath is a binary file
  3. ## Install
  4. ```
  5. $ npm install --save is-binary-path
  6. ```
  7. ## Usage
  8. ```js
  9. var isBinaryPath = require('is-binary-path');
  10. isBinaryPath('src/unicorn.png');
  11. //=> true
  12. isBinaryPath('src/unicorn.txt');
  13. //=> false
  14. ```
  15. ## Related
  16. - [`binary-extensions`](https://github.com/sindresorhus/binary-extensions) - List of binary file extensions
  17. - [`is-text-path`](https://github.com/sindresorhus/is-text-path) - Check if a filepath is a text file
  18. ## License
  19. MIT © [Sindre Sorhus](http://sindresorhus.com)