Combines given converters.
The result function converts a given path with the first matched converter.

@param {{match: function, convert: function}} converters - A list of converters to combine.
@returns {function} A function which replaces a given path.
function combine(converters) {
    return filePath => {
        for (const converter of converters) {
            if (converter.match(filePath)) {
                return converter.convert(filePath)
            }
        }
        return filePath
    }
}