Starts dotenv Manipulator
Path to .env, default is __dirname.
If set to true functions throw errors whenever there's an incorrect input.
Specify file encoding, default is utf8.
Add object keys and values to .env file and process.env
Object to add to the environment
If you try to add a key/value pair that is already in the environment :
- add(obj, true) would update said variables
- add(obj) would just ignore your input
Remove variable from .env file and process.env
Key(s) you want to remove
Generated using TypeDoc
dotenv Manipulator :
.envtoprocess.env.envfile andprocess.envat runtime// require const Manipulator = require('dotenv-manipulator').default// import import Manipulator from 'dotenv-manipulator'