https://github.com/bkeepers/update-dotenv
A NodeJS module to write updates to a .env file
https://github.com/bkeepers/update-dotenv
Last synced: about 1 year ago
JSON representation
A NodeJS module to write updates to a .env file
- Host: GitHub
- URL: https://github.com/bkeepers/update-dotenv
- Owner: bkeepers
- License: isc
- Created: 2018-08-10T16:41:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T01:40:00.000Z (about 6 years ago)
- Last Synced: 2025-05-07T14:24:44.221Z (about 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 10
- Watchers: 1
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# update-dotenv
> A NodeJS module to write updates to a .env file
## Installation
```
npm install dotenv update-dotenv
```
## Usage
```js
const updateDotenv = require('update-dotenv')
updateDotenv({
MY_VARIABLE: 'new value'
}).then((newEnv) => console.log('Done!', newEnv))
```
## License
[ISC](LICENSE)