# Node-RED version string from within a custom node

**URL:** <https://discourse.nodered.org/t/node-red-version-string-from-within-a-custom-node/16033>\
**Category:** Developing Nodes\
**Created:** [28 September 2019 20:10 UTC](https://discourse.nodered.org/t/node-red-version-string-from-within-a-custom-node/16033 "2019-09-28T20:10:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 September 2019 20:10 UTC](https://discourse.nodered.org/t/node-red-version-string-from-within-a-custom-node/16033/1 "2019-09-28T20:10:43Z")

</div>

Hi all,

Does anyone know of a way to get hold of the Node-RED version string from within a custom node? e.g. something on the RED object or an API call?

I want to pass it through to an API that uibuilder sets up that displays detailed information about the configuration of the Node.

> **Note on Slack**
>
> PS: I asked this on Slack earlier but looks like not many people online so I added a note to say that answers should come here instead - it is rather easy to lose threads on Slack.
> 
> [https://node-red.slack.com/archives/C03M2TAQ8/p1569698391387600](https://node-red.slack.com/archives/C03M2TAQ8/p1569698391387600)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [28 September 2019 21:00 UTC](https://discourse.nodered.org/t/node-red-version-string-from-within-a-custom-node/16033/2 "2019-09-28T21:00:04Z")

</div>

If thought it was in RED.settings.version - but not sure why a node would need to know it per se - You can restrict if a node gets installed to a version of Node-RED etc via its package.json.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 September 2019 21:04 UTC](https://discourse.nodered.org/t/node-red-version-string-from-within-a-custom-node/16033/3 "2019-09-28T21:04:20Z")

</div>

Thanks Dave, that does it.

> [@dceejay](#):
>
> but not sure why a node would need to know it per se

Well, I don't _need_ it, but it is handy to have all the information in a single place:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c2801f660ddcbf48e5a10d72e5fbd1bc4e7080bd.png)

The above is a small part of the updated `uibindex` page from uibuilder - it tells you everything that is going on. All of the URLs available, all of the packages and their main entry points and help URL's, configuration of ExpressJS, configuration of uibuilder itself and some other useful bits.

The minimum version is pulled from the package.json of course.
