We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

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 8 months ago

Package Health Score

77 / 100
Full package analysis