Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions node-w3capi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ Output can be found in `data` directory.

### participants.html

### participants.txt

A snapshot of CG participants (humans) as plaintext

### users.json
7 changes: 7 additions & 0 deletions node-w3capi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const filenames = {
designated: "affiliation-designated-voters.md",
},
txt: {
participants: "participants.txt",
voters: "eligible-voters.txt",
},
};
Expand Down Expand Up @@ -116,6 +117,12 @@ if (nonSingularOrgs.length === 0) {
spinner.succeed("Generated markdown");
}

spinner.start("🤖 Generating TXT");
const participants = data.users.map((user) => user.name);
participants.sort(alphaSort);
fs.writeFileSync(paths.txt.participants, participants.join("\n") + "\n");
spinner.succeed("Generated TXT");

if (localDataExists(paths.md)) {
spinner.start("🤖 Generating eligible voters list");
const representativesTable = fs
Expand Down