mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-06-23 04:10:14 +00:00
0f61d7ee1b
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
23 lines
586 B
JavaScript
23 lines
586 B
JavaScript
const fs = require("fs");
|
|
|
|
// Read the file from private/sort-contributors.txt
|
|
const file = fs.readFileSync("private/sort-contributors.txt", "utf8");
|
|
|
|
// Convert to an array of lines
|
|
let lines = file.split("\n");
|
|
|
|
// Remove empty lines
|
|
lines = lines.filter((line) => line !== "");
|
|
|
|
// Remove duplicates
|
|
lines = [...new Set(lines)];
|
|
|
|
// Remove @weblate and @UptimeKumaBot
|
|
lines = lines.filter((line) => line !== "@weblate" && line !== "@UptimeKumaBot" && line !== "@louislam");
|
|
|
|
// Sort the lines
|
|
lines = lines.sort();
|
|
|
|
// Output the lines, concat with " "
|
|
console.log(lines.join(" "));
|