Skip to content

Empty Example value

Latest
Compare
Choose a tag to compare
@Julien-R44 Julien-R44 released this 29 Apr 09:51

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.

Commits

  • Merge pull request #39 from adonisjs/feat/empty-example (418e443)
  • chore: wip (9168360)
  • chore: readme (eae8a30)
  • feat: add with empty example value (ddaa57a)