Skip to content

Instantly share code, notes, and snippets.

@sammachin
Created August 16, 2022 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sammachin/8ebfe9ae218aa5105e7da13db14ac272 to your computer and use it in GitHub Desktop.
Save sammachin/8ebfe9ae218aa5105e7da13db14ac272 to your computer and use it in GitHub Desktop.
List Env Vars

Small flow using a function node to call process.env and list all the env vars in the debug window. Useful for checking values or for exporting a project from Node-RED

[{"id":"3ed886625239a5d0","type":"function","z":"a87879f70edc3463","name":"process.env","func":"msg.payload = process.env\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"process","module":"process"}],"x":650,"y":480,"wires":[["9ca3edbd6857853f"]]},{"id":"b35ef390a46ff129","type":"inject","z":"a87879f70edc3463","name":"List env vars","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":430,"y":480,"wires":[["3ed886625239a5d0"]]},{"id":"9ca3edbd6857853f","type":"debug","z":"a87879f70edc3463","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":480,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment