Node runs the same language with extra globals: `process`, `fs`, `path` and `Buffer`. Configuration comes from `process.env`, never from committed files.
const key = process.env.PRIVATE_KEY;
if (!key) throw new Error("PRIVATE_KEY missing");Scripts that sign transactions belong on a machine you control — a leaked key is unrecoverable.