Constructs a new EnvEditor instance
The application root directory URL
StaticcreateCreates an instance of env editor and loads .env files contents.
The application root directory URL
Promise resolving to an EnvEditor instance
Loads .env files for editing. Only ".env" and ".env.example" files are picked for editing.
Promise that resolves when files are loaded
Add key-value pair to the dot-env files.
If withEmptyExampleValue is true then the key will be added with an empty value
to the .env.example file.
The environment variable key
The environment variable value
Whether to add empty value to .env.example file
Returns the loaded files as JSON
Array of file objects with contents and paths
Save changes to the disk
Promise that resolves when files are saved
Environment editor for managing and modifying .env files. Provides functionality to load, edit, and save environment configuration files.