This is a simple package to get the environment variables, it works in different runtimes like Deno, Bun and Node.js.
import * as env from 'jsr:@tsirysndr/env-js';
console.log(env.get('HOME'));
console.log(env.has('HOME'));
Get environment variables in Deno, Bun and Node.js