www_hero/node_modules/is-binary-path/index.js
sasha-astiadi 324d5960af hero_web
2024-05-03 06:39:20 +02:00

8 lines
239 B
JavaScript

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