Sha256: dddf29dcaed1779017ecd38204831052d8c0c79eb01b146df0a257eba48833d6
Contents?: true
Size: 339 Bytes
Versions: 17
Compression:
Stored size: 339 Bytes
Contents
'use strict'; var path = require('path'); var binaryExtensions = require('binary-extensions'); var exts = Object.create(null); binaryExtensions.forEach(function (el) { exts[el] = true; }); module.exports = function (filepath) { var ext = path.extname(filepath).slice(1); if (ext === '') { return false; } return ext in exts; };
Version data entries
17 entries across 17 versions & 2 rubygems