You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
290 B

  1. /**
  2. Check if a file path is a binary file.
  3. @example
  4. ```
  5. import isBinaryPath = require('is-binary-path');
  6. isBinaryPath('source/unicorn.png');
  7. //=> true
  8. isBinaryPath('source/unicorn.txt');
  9. //=> false
  10. ```
  11. */
  12. declare function isBinaryPath(filePath: string): boolean;
  13. export = isBinaryPath;