UNPKG

this.env

Version:

Designed to serve as a cornerstone for ensuring the integrity and reliability of the operational environment, particularly in dynamic and intelligent systems.

28 lines (25 loc) 725 B
/* this.env/index.js ⓝⓔⓤⓡⓞⓝⓢ.ⓜⓔ 🆂🆄🅸🅶🅽 -------------------------------- For more information, visit: https://neurons.me*/ export default class thisEnv { constructor() { this.env = process.env; } getEnv() { return this.env; } getEnvVar(envVar) { return this.env[envVar]; } setEnvVar(envVar, value) { this.env[envVar] = value; } deleteEnvVar(envVar) { delete this.env[envVar]; } } console.log("this.env loaded;"); //export default thisEnv; //uncomment this line to use this module in other modules.