Changes
Added a third argument withEmptyExampleValue
to the EnvEditor
add
method which allows to insert a empty value in the .env.example file
const editor = await EnvEditor.create(fs.baseUrl)
editor.add('SECRET_VALUE', 'key, true)
This will result in SECRET_VALUE=key
in the .env
file, but with SECRET_VALUE=
in the .env.example file.