_build.js
/**
 * Returns a badge acting as a link to a source repository for an app.
 * @param {String} repo The repository url
 */
Returns a badge acting as a link to a source repository for an app.
@param {String} repo The repository url
Returns a badge acting as a link to a source repository for an app . @param { String } repo The repository url
function repoLink(repo) {
    let repoURL = new URL(repo);
    let repoHost = path.basename(repoURL.hostname, path.extname(repoURL.hostname));
    if (repoHost.includes(".")) repoHost = path.extname(repoHost).replace(".", "");
    return `[![Repo](https://img.shields.io/badge/open-source-3DA639?style=flat-square&logo=${repoHost})](${repo})`;
}
function repoLink ( repo ) { let repoURL = new URL ( repo ) ; let repoHost = path . basename ( repoURL . hostname , path . extname ( repoURL . hostname ) ) ; if ( repoHost . includes ( "." ) ) repoHost = path . extname ( repoHost ) . replace ( "." , "" ) ; return ` ${ repoHost } ${ repo } ` ; }
Returns a badge acting as a link to a source repository for an app.
Returns a badge acting as a link to a source repository for an app .