Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 632 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 632 Bytes

node-red-contrib-projectdir

The new node "projectdir" when inserted into a flow will add an extra field msg.projectdir to the incoming msg object and sets its value to the file system path of the node-red project directory from which this flow runs.

This is useful for managing file resources for the node-red flow in the same git repository as the node-red flows that use them, e.g. for calling custom shell skripts.

The project directory location is extracted from undocumented fields in the node-red settings. Therefore, this node might stop working later today with the next release of node-red.

Use at your own risk.