How to use the binary-extensions.indexOf function in binary-extensions

To help you get started, we’ve selected a few binary-extensions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pantojs / panto / src / fileutils.js View on Github external
isBinary(filepath) {
        const ext = path.extname(filepath).slice(1).toLowerCase();
        return (this.options.binary_resource || '').toLowerCase().split(',').indexOf(ext) > -1 || binaryExtensions.indexOf(ext) > -1;
    }
    locate(name) {

binary-extensions

List of binary file extensions

MIT
Latest version published 6 months ago

Package Health Score

82 / 100
Full package analysis