author

tcmts.cli.contributions.author · #clpildh4 · term · runs on the server

uses node:os

Who's commenting or merging: $TCM_AUTHOR, else the OS user. A server takes it from its maintainer's token as given; a contributor's token signs as its handle, whatever this says.

import os from "node:os";

export function author(): string {
  return process.env.TCM_AUTHOR || os.userInfo().username;
}

used by