By convention, what language or syntax is a .env
file written in?
Is it a sh
script, a bash
script, JavaScript, or is it a stripped down no-frills syntax inspired by sh
syntax? Are all variables defined strings, or are other variable types supported?
I recently started using .env
files in my NodeJS applications, but I can find nowhere in the documentation what language it is in or what constraints on syntax I must follow. I found a definition in the docker docs which seems to suggest MY_VAR=my val
is the only notable feature, per se.
EDIT:
While I encountered this in the context of NodeJS, the question is not specific to nodeJS. .env
files used in other contexts should be considered.