Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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) {