From http://www.meteorpedia.com/read/Environment_Variables, "... getting and setting of environment variables is via process.env. By convention, environement variables are in all caps, with words separated by underscores, LIKE_THIS."
And https://codeburst.io/how-to-easily-set-up-node-environment-variables-in-your-js-application-d06740f9b9bd: "You can use whatever names you’d like, but the general naming convention is all-caps with underscores between words."
Why? Is there any legitimate argument against using camel case?
By convention, environment variables ( PAGER , EDITOR , ...) and internal shell variables ( SHELL , BASH_VERSION , ...) are capitalized. All other variable names should be lower case. Remember that variable names are case-sensitive; this convention avoids accidentally overriding environmental and internal variables.
By convention, environment variables are written in UPPERCASE while shell variables usually have lowercase names.
You really do not need to set up your own environment to start learning Node. js. Reason is very simple, we already have set up Node.
In fact, these are not environment variables, but environment constants in the scope of your app.
It's a convention to name constants in capital letters.
The underscore just makes it more readable.
You can still use camelCase if you prefer, it's a matter of choice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With