How to use the .env file?
I have heard that using a file with the extension of
.env can allow you to hide variables from other users, but I do not know exactly how to do it. Does anyone know how to do it?
Within your .env file you can set environment variables, which is done in a
KEY=VALUE format, e.g.
You should be able to use a programming language to manipulate environment variables. In python try:
Note that quotation marks will be part of your environment variable (unlike in python or node.js where the interpreter assumes that this means your variable is a string). So
H="H" means that h is assigned the value of "H" not H.
The .env file is hidden from other users, who cannot see it when they look at your repl. It is not included in forks that other users make of the repository.