tools/update-readme.js
function formatSponsors(sponsors) {
    const nonEmptySponsors = Object.keys(sponsors).filter(tier => sponsors[tier].length > 0);

    /* eslint-disable indent*/
    return stripIndents`<!--sponsorsstart-->
        ${
            nonEmptySponsors.map(tier => `<h3>${tier[0].toUpperCase()}${tier.slice(1)} Sponsors</h3>
            <p>${
                sponsors[tier].map(sponsor => `<a href="${sponsor.url}"><img src="${sponsor.image}" alt="${sponsor.name}" height="${heights[tier]}"></a>`).join(" ")
            }</p>`).join("")
        }
    <!--sponsorsend-->`;
    /* eslint-enable indent*/
}
function formatSponsors(sponsors) {
    const nonEmptySponsors = Object.keys(sponsors).filter(tier => sponsors[tier].length > 0);

    /* eslint-disable indent*/
    return stripIndents`<!--sponsorsstart-->
        ${
            nonEmptySponsors.map(tier => `<h3>${tier[0].toUpperCase()}${tier.slice(1)} Sponsors</h3>
            <p>${
                sponsors[tier].map(sponsor => `<a href="${sponsor.url}"><img src="${sponsor.image}" alt="${sponsor.name}" height="${heights[tier]}"></a>`).join(" ")
            }</p>`).join("")
        }
    <!--sponsorsend-->`;
    /* eslint-enable indent*/
}
function formatSponsors ( sponsors ) { const nonEmptySponsors = Object . keys ( sponsors ) . filter ( tier => sponsors [ tier ] . length > 0 ) ; /* eslint-disable indent*/ return stripIndents ` ${ nonEmptySponsors . map ( tier => ` ${ tier [ 0 ] . toUpperCase ( ) } ${ tier . slice ( 1 ) } ${ sponsors [ tier ] . map ( sponsor => ` ${ sponsor . url } ${ sponsor . image } ${ sponsor . name } ${ heights [ tier ] } ` ) . join ( " " ) } ` ) . join ( "" ) } ` ; /* eslint-enable indent*/ }
Formats an array of sponsors into HTML for the readme.
@param {Array} sponsors The array of sponsors.
@returns {string} The HTML for the readme.
Formats an array of sponsors into HTML for the readme .