aswi2020vldc-gitlab/templetes/node_modules/is-binary-path/index.js @ 78a2184f
1 |
'use strict'; |
---|---|
2 |
var path = require('path'); |
3 |
var binaryExtensions = require('binary-extensions'); |
4 |
var exts = Object.create(null); |
5 |
|
6 |
binaryExtensions.forEach(function (el) { |
7 |
exts[el] = true; |
8 |
});
|
9 |
|
10 |
module.exports = function (filepath) { |
11 |
return path.extname(filepath).slice(1).toLowerCase() in exts; |
12 |
};
|