Skip to content

node-red node which assigns the project directory path to msg.projectdir

License

Notifications You must be signed in to change notification settings

ianmacs/node-red-contrib-projectdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

node-red node which assigns the project directory path to msg.projectdir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published