Pass process arguments and environment variables to node.script object
ronenlh opened this issue · comments
Nature of issue?
- Found a bug in an example
- Existing example enhancement
- Suggest a new example
Existing example enhancement details:
Existing examples such as freesound, twitter, and giphy, use process.env
through dot-env to access credentials.
There are no examples which use process.argv
.
New example details:
There should be an example on how to pass arguments to node.script
from inside the patcher (such as an inlet), which can then be retrieved through process.argv
.
There should also be an example on how to pass environment variables to node.script
, set in the patcher (such as from the inspector), which can be retrieved through process.env
.