Feature: Get current project information (version, name, description) from env

Hi, I'm currently using NodeRED with projects enabled. I would like to access the project version from package.json and display it in an http interface, but I couldn't find a direct way to retrieve this information. I think it would be helpful if NodeRED could provide this information as an environment variable.

Welcome to the forums @mrcamilletti

This may not be a permanent or a clean solution in the interim, but you can just read the package file, of said project.

I did try looking at the API - but I don't think an endpoint exists to give you the info.

[{"id":"70e5eaa9180c9184","type":"file in","z":"2d7bf6e3.84c97a","name":"","filename":"/<Path-To-Project-Folder>/package.json","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":300,"y":800,"wires":[["3937890f3bb4f3ec"]]},{"id":"33a6bb233167cde0","type":"inject","z":"2d7bf6e3.84c97a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":720,"wires":[["70e5eaa9180c9184"]]},{"id":"00931bec962843a9","type":"debug","z":"2d7bf6e3.84c97a","name":"debug 386","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":750,"y":800,"wires":[]},{"id":"3937890f3bb4f3ec","type":"json","z":"2d7bf6e3.84c97a","name":"","property":"payload","action":"","pretty":false,"x":570,"y":800,"wires":[["00931bec962843a9"]]}]