Using the integrated Bash terminal in VS Code on Windows 10, I can access individual properties of the Node process.env
object using echo $PROPERTYNAME
, but I can't figure out how to list all of them.
$ process.env
bash: process.env: command not found
Solved: start by typing node
and pressing enter, then type process.env
and press enter.
$ node
> process.env
{ ALLUSERSPROFILE: 'C:\\ProgramData',
APPDATA: 'C:\\Users...,
...
}
Pure node answer (on Linux at least)
node --print 'process.env'
{ LC_PAPER: 'es_AR.UTF-8',
LESSKEY: '/etc/lesskey.bin',
MANPATH: '/usr/local/man:/usr/share/man',
NNTPSERVER: 'news',
...
}
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