index.js
function addAllMatchingCompressionsToFile(fileName, fullFilePath) {
        for (var i = 0; i < compressions.length; i++) {
            if (fileName.endsWith(compressions[i].fileExtension)) {
                addCompressionToFile(fullFilePath, compressions[i]);
                return;
            }
        }
    }
function addAllMatchingCompressionsToFile(fileName, fullFilePath) {
        for (var i = 0; i < compressions.length; i++) {
            if (fileName.endsWith(compressions[i].fileExtension)) {
                addCompressionToFile(fullFilePath, compressions[i]);
                return;
            }
        }
    }
function addAllMatchingCompressionsToFile ( fileName , fullFilePath ) { for ( var i = 0 ; i < compressions . length ; i ++ ) { if ( fileName . endsWith ( compressions [ i ] . fileExtension ) ) { addCompressionToFile ( fullFilePath , compressions [ i ] ) ; return ; } } }
Takes a filename and checks if there is any compression type matching the file extension.
Adds all matching compressions to the file.
@param {string} fileName
@param {string} fillFilePath
Takes a filename and checks if there is any compression type matching the file extension . Adds all matching compressions to the file .