You can see below the API reference of this module.
Converts the pair of name and value into a string.
- String
name: The environment variable name. - String
value: The environment variable value.
- String The stringified pair.
Converts an object of environment variables into an array.
- Object
obj: The object containing environment variables to stringify.
- Array An array of stringified pairs.
Create a file named .env in the specified directory.
- Object
obj: The object containing environment variables to stringify. - String
dir: The directory where to create the.envfile (default: the current directory). - Function
cb: The callback function.
- Stream The writable stream.