Skip to content
← Back to Community
How to get System environment variables secret key?
Profile icon
UzairGamingYT

i want the System environment variables secret key. NOW

Comments
hotnewtop
Profile icon
VulcanWM

the env keys?
i see the lang you use most if nodejs, so to get a key in nodejs, you do the code below:

console.log(process.env.KEY_NAME)
Profile icon
GLiQue

@VulcanWM

not working

image

Profile icon
VulcanWM

oh this worked a year ago, theyve prolly changed it or smth
also is this a node.js repl or a html, css, js repl
because it wont work on html, css, js repls

@GLiQue

Profile icon
GLiQue

@VulcanWM
wt o_o