Something went wrong. Try again.
spool is a community-first, lightweight discussion forum, issue tracker, and announcement hub for your project.
Something went wrong. Try again.
123456789101112import fs from "node:fs";
// Tiny .env loader — real values never override ones already in the environment.if (fs.existsSync(".env")) { for (const line of fs.readFileSync(".env", "utf8").split("\n")) { const match = line.match(/^([A-Z_][A-Z0-9_]*)=(.*)$/); if (match && process.env[match[1]] === undefined) { process.env[match[1]] = match[2].trim(); } }}