ownId

tcmts.cli.web.ownId · #a6yyofp6 · term · runs on the server

uses node:crypto

A name for what's this process's own among other processes' (<pid>-<random>): a build's private directory, a lease, a dev server's files. ownerGone reads the process back from it.

import { randomBytes } from "node:crypto";

export const ownId = () => `${process.pid}-${randomBytes(4).toString("hex")}`

used by