@growflow/update-dotenv

A NodeJS module to write updates to a .env file

Usage no npm install needed!

<script type="module">
  import growflowUpdateDotenv from 'https://cdn.skypack.dev/@growflow/update-dotenv';
</script>

README

update-dotenv

A NodeJS module to write updates to a .env file

Installation

yarn add dotenv @growflow/update-dotenv

Usage

const updateDotenv = require('@growflow/update-dotenv')

updateDotenv({
  MY_VARIABLE: 'new value'
}, <optional_environment_name>).then((newEnv) => console.log('Done!', newEnv))

License

ISC