aboutsummaryrefslogtreecommitdiff
path: root/views/script/credits_libs.js
blob: 9e2f21ad69b3f3d1251ad0308a1e056aee1068b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Object.keys(process.versions).forEach((e) => {
    v = process.versions[e];
    document.write(e.substr(0, 1).toUpperCase() + e.substr(1) + " contributors<br>");
})
dirs = require('fs').readdirSync("./node_modules");
dirs.forEach((dir) => {
    if (!dir.startsWith(".") && !dir.startsWith("@") && dir !== "electron") {
        j = JSON.parse(require('fs').readFileSync("./node_modules/" + dir + "/package.json").toString());
        if (typeof j.author === "string") {
            document.write(j.author + "<br>");
        } else {
            document.write(j.name.substr(0, 1).toUpperCase() + j.name.substr(1) + " authors<br>");
        }
    }
})