lib/converters/index.js
function (inputVersion, outputVersion) {
        var converter;

        inputVersion = semver.clean(inputVersion);
        outputVersion = semver.clean(outputVersion);

        for (converter in this.converters) {
            // eslint-disable-next-line no-prototype-builtins
            converter = this.converters.hasOwnProperty(converter) && this.converters[converter];
            if (converter && semver.eq(converter.input, inputVersion) && semver.eq(converter.output, outputVersion)) {
                return generateConverter(converter);
            }
        }
    }
function (inputVersion, outputVersion) {
        var converter;

        inputVersion = semver.clean(inputVersion);
        outputVersion = semver.clean(outputVersion);

        for (converter in this.converters) {
            // eslint-disable-next-line no-prototype-builtins
            converter = this.converters.hasOwnProperty(converter) && this.converters[converter];
            if (converter && semver.eq(converter.input, inputVersion) && semver.eq(converter.output, outputVersion)) {
                return generateConverter(converter);
            }
        }
    }
function ( inputVersion , outputVersion ) { var converter ; inputVersion = semver . clean ( inputVersion ) ; outputVersion = semver . clean ( outputVersion ) ; for ( converter in this . converters ) { // eslint-disable-next-line no-prototype-builtins converter = this . converters . hasOwnProperty ( converter ) && this . converters [ converter ] ; if ( converter && semver . eq ( converter . input , inputVersion ) && semver . eq ( converter . output , outputVersion ) ) { return generateConverter ( converter ) ; } } }
Fetches a converter for the given input and output versions

@param {String} inputVersion - The version to convert from.
@param {String} outputVersion - The version to convert to.
@returns {Converter} - A converter for the given set of options.
Fetches a converter for the given input and output versions