INNER CODE UNIT · JavaScript

userToLine

AscensionGameDev/Intersect-Engine · scripts/AUTHORS.md.updater.devtools.js:47

    function userToLine({ name, link }) {
        return `[${name}](${link})`;
    }

    const contributorLinks = [...document.querySelector('[app-name=repos-contributors-chart]')?.querySelectorAll('h2 a.prc-Link-Link-85e08') ?? []];
    const allContributors = [
        ...contributorsToAdd,
        ...contributorLinks.map(({ href, textContent }) => {
            const username = getUsername(href);
            return {
                link: href,
                name: mappedNames.get(username) ?? textContent,
                username
            };
        }),
    ];

    const filteredContributors = allContributors.filter(({ username }) => !usernamesToIgnore.has(username));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…