index.js 239 B

1234567
  1. 'use strict';
  2. const path = require('path');
  3. const binaryExtensions = require('binary-extensions');
  4. const extensions = new Set(binaryExtensions);
  5. module.exports = filePath => extensions.has(path.extname(filePath).slice(1).toLowerCase());