ParsEnv
Edit, Save or Load variables from .env ( For Nodejs )
WHY I CREATE THIS
Since motdotla/dotenv can load variables from .env but can't save modified variables into .env, I just want to create this stuff.
USAGE
Load variables
const dotenv = ;
Edit variables
const dotenv = ; dotenv;
Save variables
const dotenv = ; dotenv;
EXAMPLE
const parsenv = ;const p = ; parsenv; parsenv; parsenv;
CONFIGURATION
const dotenv = ; const config = path: // default encoding: 'utf8' // default debug: false // default; // config can apply to dotenv.config functiondotenv; // also pass it to dotenv.write functiondotenv;
These settings and variables can be modified through global.parsenv.setting
and global.parsenv.env
. But recommend edit
method to change variable
LICENSE
ParsEnv
is licensed under the MIT license. See License for more information.