update-dotenv

Write updates to a .env file

Usage no npm install needed!

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

README

update-dotenv

A NodeJS module to write updates to a .env file

Installation

npm install dotenv update-dotenv

Usage

const updateDotenv = require('update-dotenv')

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

License

ISC