Projekt

Obecné

Profil

Stáhnout (297 Bajtů) Statistiky
| Větev: | Revize:
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
};
(1-1/4)